thelio76: (testing) modularize home-manager config
This commit is contained in:
parent
608fa9552a
commit
6c18d30032
|
@ -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}; };
|
||||
}
|
19
flake.nix
19
flake.nix
|
@ -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}; };
|
||||
# }
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue