diff --git a/flake.nix b/flake.nix index ecac1e4..92dd163 100644 --- a/flake.nix +++ b/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 ]; }; }; diff --git a/modules/nixos/music.nix b/modules/nixos/music.nix index 33eb012..372218a 100644 --- a/modules/nixos/music.nix +++ b/modules/nixos/music.nix @@ -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 = {