mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
39 lines
686 B
Nix
39 lines
686 B
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}: {
|
|
flake.modules.nixos.core = {
|
|
hostName,
|
|
userName,
|
|
userEmail,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
|
|
home-manager = {
|
|
backupFileExtension = "bak";
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = {
|
|
inherit
|
|
inputs
|
|
hostName
|
|
userName
|
|
userEmail
|
|
;
|
|
};
|
|
|
|
users.${userName} = {
|
|
imports = [
|
|
config.flake.modules.homeManager.core
|
|
config.flake.modules.homeManager.shell
|
|
config.flake.modules.homeManager.${hostName}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|