29 lines
485 B
Nix
29 lines
485 B
Nix
{
|
|
inputs,
|
|
outputs,
|
|
flakeLib,
|
|
vars,
|
|
...
|
|
}: let
|
|
inherit (vars) username hostName;
|
|
profile = "${username}@${hostName}";
|
|
in {
|
|
imports = [
|
|
outputs.nixosModules.base
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
networking = {
|
|
inherit (vars) hostName domain;
|
|
};
|
|
|
|
home-manager = flakeLib.mkHomeNixosModule {
|
|
inherit inputs outputs vars flakeLib;
|
|
users.${vars.username} = {
|
|
imports = [
|
|
../../home-manager/${profile}/home.nix
|
|
];
|
|
};
|
|
};
|
|
}
|