From 2aaa3e28ef8859bf72df4d4239c34ec2f0e58df4 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Sat, 27 Jul 2024 16:50:51 +0530 Subject: [PATCH] feat: add music nix --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 4 ++++ nixos/configuration.nix | 3 ++- nixos/device.nix | 1 + 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 0cf6a66c..98114fe1 100644 --- a/flake.lock +++ b/flake.lock @@ -1562,6 +1562,26 @@ "type": "github" } }, + "musnix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1721613486, + "narHash": "sha256-M7RCvk8aqCFWQIPKS7pdFPJ+0QdZv6EjNWE5dBq/MvE=", + "owner": "musnix", + "repo": "musnix", + "rev": "410be50500882ed4d0672acef2f9e757d3d5372d", + "type": "github" + }, + "original": { + "owner": "musnix", + "repo": "musnix", + "type": "github" + } + }, "naersk": { "inputs": { "nixpkgs": "nixpkgs_4" @@ -2349,6 +2369,7 @@ "ironbar": "ironbar", "lanzaboote": "lanzaboote", "music-player": "music-player", + "musnix": "musnix", "neovim": "neovim", "nix-darwin": "nix-darwin_2", "nix-index-database": "nix-index-database", diff --git a/flake.nix b/flake.nix index dffcc72f..651cb846 100644 --- a/flake.nix +++ b/flake.nix @@ -83,6 +83,10 @@ url = "github:uttarayan21/shell-plugins"; inputs.nixpkgs.follows = "nixpkgs"; }; + musnix = { + url = "github:musnix/musnix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { diff --git a/nixos/configuration.nix b/nixos/configuration.nix index a0ad59d4..2cfd1980 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -194,7 +194,7 @@ users.users.servius = { isNormalUser = true; description = "Uttarayan"; - extraGroups = ["networkmanager" "wheel"]; + extraGroups = ["networkmanager" "wheel" "audio"]; }; # Allow unfree packages @@ -228,6 +228,7 @@ }; }; + musnix.enable = true; programs = { hyprland.enable = true; hyprland.xwayland.enable = true; diff --git a/nixos/device.nix b/nixos/device.nix index 1d4c7cc3..e540b82f 100644 --- a/nixos/device.nix +++ b/nixos/device.nix @@ -22,6 +22,7 @@ builtins.listToAttrs (builtins.map (device: { ./configuration.nix home-manager.nixosModules.home-manager inputs.lanzaboote.nixosModules.lanzaboote + inputs.musnix.nixosModules.musnix { nixpkgs.config.allowUnfree = true; home-manager = {