diff --git a/flake.nix b/flake.nix index 2cc45d7..826928f 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ specialArgs = {inherit inputs self;}; modules = [ ./hosts/MacBook-Pro-Kirill/configuration.nix + ./shared/programs/spicetify.nix inputs.spicetify-nix.darwinModules.default ]; }; @@ -34,6 +35,8 @@ modules = [ ./hardware-configuration.nix ./hosts/kachu-pc/configuration.nix + ./shared/programs/spicetify.nix + inputs.spicetify-nix.nixosModules.default ]; }; }; diff --git a/hosts/MacBook-Pro-Kirill/configuration.nix b/hosts/MacBook-Pro-Kirill/configuration.nix index 5616e71..775faf0 100644 --- a/hosts/MacBook-Pro-Kirill/configuration.nix +++ b/hosts/MacBook-Pro-Kirill/configuration.nix @@ -50,16 +50,6 @@ nix.optimise.automatic = true; - programs.spicetify = let - spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; - in { - enable = true; - enabledExtensions = with spicePkgs.extensions; [ - adblock - beautiful-lyrics - ]; - }; - nix.settings.experimental-features = "nix-command flakes"; system.primaryUser = "kirill"; diff --git a/shared/programs/spicetify.nix b/shared/programs/spicetify.nix new file mode 100644 index 0000000..1a65f50 --- /dev/null +++ b/shared/programs/spicetify.nix @@ -0,0 +1,16 @@ +# spicetify.nix +{ + pkgs, + inputs, + ... +}: { + programs.spicetify = let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; + in { + enable = true; + enabledExtensions = with spicePkgs.extensions; [ + adblock + beautiful-lyrics + ]; + }; +}