thelio76: (testing) modularize home-manager config

This commit is contained in:
Alex 2024-07-26 18:41:17 -04:00
parent 608fa9552a
commit 6c18d30032
2 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,9 @@
{ system, inputs }:
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.alex = import ./config/users/alex;
home-manager.extraSpecialArgs = { ff = inputs.firefox-addons.packages.${system}; };
}

View File

@ -34,7 +34,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.alex = import ./config/users/alex/default.nix;
home-manager.users.alex = import ./config/users/alex;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
@ -44,14 +44,15 @@
system = "x86_64-linux";
modules = [
./config/systems/thelio76
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.alex = import ./config/users/alex/default.nix;
home-manager.extraSpecialArgs = { ff = firefox-addons.packages.${system}; };
}
./config/modules/home-manager.nix { inherit system inputs }
# home-manager.nixosModules.home-manager
# {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.backupFileExtension = "backup";
# home-manager.users.alex = import ./config/users/alex;
# home-manager.extraSpecialArgs = { ff = firefox-addons.packages.${system}; };
# }
];
};