update music module

This commit is contained in:
Max Känner 2024-12-28 22:41:12 +01:00
parent 02d570f13d
commit 48c4a9a147
2 changed files with 9 additions and 20 deletions

View File

@ -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
];
};
};

View File

@ -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 = {