diff --git a/flake.nix b/flake.nix index b14fda3..ec79c84 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ }; }; - outputs = { self,nix-darwin ,nixpkgs, ... }@inputs: { + outputs = { self,nix-darwin ,nixpkgs, home-manager, spicetify-nix, ... }@inputs: { # use "nixos", or your hostname as the name of the configuration # it's a better practice than "default" shown in the video nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix index 0e21334..9cd865b 100644 --- a/hosts/nixos/configuration.nix +++ b/hosts/nixos/configuration.nix @@ -9,7 +9,7 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix ./modules.nix - inputs.home-manager.nixosModules.default + #inputs.home-manager.nixosModules.default ]; # Bootloader. @@ -40,6 +40,8 @@ home-manager = { extraSpecialArgs = { inherit inputs; }; + useGlobalPkgs = true; + useUserPackages = true; users = { "alex" = import ./home.nix; }; diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index 170a14c..21687b1 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, inputs, ... }: { # Home Manager needs a bit of information about you and the paths it should @@ -7,6 +7,7 @@ home.homeDirectory = "/home/alex"; imports = [ + inputs.spicetify-nix.homeManagerModules ../../modules/home-manager/spicetify.nix ]; @@ -123,5 +124,5 @@ }; # Let Home Manager install and manage itself. - programs.home-manager.enable = true; + #programs.home-manager.enable = true; }