update music module
This commit is contained in:
		
							
								
								
									
										18
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								flake.nix
									
									
									
									
									
								
							| @@ -4,26 +4,18 @@ | ||||
|   inputs = { | ||||
|     nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; | ||||
|  | ||||
|     home-manager = { | ||||
|       url = "github:nix-community/home-manager/release-24.11"; | ||||
|       inputs.nixpkgs.follows = "nixpkgs"; | ||||
|     }; | ||||
|     home-manager.url = "github:nix-community/home-manager/release-24.11"; | ||||
|  | ||||
|     sops-nix = { | ||||
|       url = "github:Mic92/sops-nix"; | ||||
|       inputs.nixpkgs.follows = "nixpkgs"; | ||||
|     }; | ||||
|     sops-nix.url = "github:Mic92/sops-nix"; | ||||
|  | ||||
|     musnix = { | ||||
|       url = "github:musnix/musnix"; | ||||
|       inputs.nixpkgs.follows = "nixpkgs"; | ||||
|     }; | ||||
|     musnix.url = "github:musnix/musnix"; | ||||
|   }; | ||||
|  | ||||
|   outputs = { | ||||
|     nixpkgs, | ||||
|     home-manager, | ||||
|     sops-nix, | ||||
|     musnix, | ||||
|     ... | ||||
|   } @ inputs: let | ||||
|     system = "x86_64-linux"; | ||||
| @@ -54,7 +46,7 @@ | ||||
|           home-manager.useGlobalPkgs = true; | ||||
|           home-manager.useUserPackages = true; | ||||
|         } | ||||
|         inputs.musnix.nixosModules.musnix | ||||
|         musnix.nixosModules.musnix | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
|   | ||||
| @@ -1,7 +1,6 @@ | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: let | ||||
|   cfg = config.myConfig.music; | ||||
| @@ -11,12 +10,10 @@ in { | ||||
|   }; | ||||
|  | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     # musnix = { | ||||
|     #   enable = true; | ||||
|     #   rtcqs.enable = true; | ||||
|     #   kernel.realtime = true; | ||||
|     #   kernel.packages = pkgs.linuxPackages-rt_latest; | ||||
|     # }; | ||||
|     musnix = { | ||||
|       enable = true; | ||||
|       rtcqs.enable = true; | ||||
|     }; | ||||
|     users.users.max.extraGroups = ["audio"]; | ||||
|  | ||||
|     services.pipewire = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user