From 3675fbdcc17aea6534805dd6411d765c3f0d6364 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Sun, 20 Oct 2024 19:04:36 +0100 Subject: [PATCH] added musnix to set env vars allowing vst plugins from lsp-plugins to be discoverable by OBS and other apps, enabled musnix in laptop configuration.nix --- flake.lock | 41 ++++++++++++++++++++++++++-- flake.nix | 3 ++ hosts/gabbielaptop/configuration.nix | 5 +++- 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index c366b82..2272ef5 100644 --- a/flake.lock +++ b/flake.lock @@ -500,6 +500,24 @@ "type": "github" } }, + "musnix": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1729112290, + "narHash": "sha256-6yqnhnzgM99mzY4/yrKR1Xlkjt+VQg4gP6cMlIKxQs0=", + "owner": "musnix", + "repo": "musnix", + "rev": "64356c2b84abb26b8ccf1e01df8448635cbfde64", + "type": "github" + }, + "original": { + "owner": "musnix", + "repo": "musnix", + "type": "github" + } + }, "nix-darwin": { "inputs": { "nixpkgs": [ @@ -554,6 +572,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1726755586, + "narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1728888510, "narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=", @@ -569,7 +603,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1725194671, "narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=", @@ -669,7 +703,8 @@ "flatpaks": "flatpaks", "home-manager": "home-manager", "lanzaboote": "lanzaboote", - "nixpkgs": "nixpkgs_2", + "musnix": "musnix", + "nixpkgs": "nixpkgs_3", "nixvim": "nixvim", "satisfactory-server": "satisfactory-server", "stablepkgs": "stablepkgs", @@ -765,7 +800,7 @@ "flake-utils": "flake-utils_2", "gnome-shell": "gnome-shell", "home-manager": "home-manager_3", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "systems": "systems_3", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", diff --git a/flake.nix b/flake.nix index c7815f4..873245e 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,8 @@ }; stylix.url = "github:danth/stylix"; + + musnix.url = "github:musnix/musnix"; }; outputs = { self, nixpkgs, stablepkgs, home-manager, ... } @ inputs: @@ -61,6 +63,7 @@ ./modules/aagl.nix inputs.aagl.nixosModules.default inputs.lanzaboote.nixosModules.lanzaboote + inputs.musnix.nixosModules.musnix # inputs.stylix.nixosModules.stylix { nix.settings = inputs.aagl.nixConfig; } # Setup cachix for aagl projects diff --git a/hosts/gabbielaptop/configuration.nix b/hosts/gabbielaptop/configuration.nix index 6dd5564..624e4b0 100644 --- a/hosts/gabbielaptop/configuration.nix +++ b/hosts/gabbielaptop/configuration.nix @@ -116,6 +116,9 @@ # no need to redefine it in your config for now) #media-session.enable = true; }; + + musnix.enable = true; + # pam.services = [ # { name = "gnome_keyring" @@ -136,7 +139,7 @@ users.users.blue = { isNormalUser = true; description = "Gabriella Bere"; - extraGroups = [ "networkmanager" "wheel" "dialout" ]; + extraGroups = [ "networkmanager" "wheel" "dialout" "audio" ]; shell = pkgs.zsh; };