Trying to fix some HM problems

This commit is contained in:
Alexandre 2025-12-13 12:37:46 +01:00
parent 69e17cbf9f
commit b0e57167ce
3 changed files with 7 additions and 4 deletions

View File

@ -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 # use "nixos", or your hostname as the name of the configuration
# it's a better practice than "default" shown in the video # it's a better practice than "default" shown in the video
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {

View File

@ -9,7 +9,7 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./modules.nix ./modules.nix
inputs.home-manager.nixosModules.default #inputs.home-manager.nixosModules.default
]; ];
# Bootloader. # Bootloader.
@ -40,6 +40,8 @@
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = { users = {
"alex" = import ./home.nix; "alex" = import ./home.nix;
}; };

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
@ -7,6 +7,7 @@
home.homeDirectory = "/home/alex"; home.homeDirectory = "/home/alex";
imports = [ imports = [
inputs.spicetify-nix.homeManagerModules
../../modules/home-manager/spicetify.nix ../../modules/home-manager/spicetify.nix
]; ];
@ -123,5 +124,5 @@
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; #programs.home-manager.enable = true;
} }