19 lines
499 B
Nix
19 lines
499 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
adminUser = lib.attrByPath [ "nanuqsaurus" "admin" "username" ] "admin" config;
|
|
substitute = text: lib.replaceStrings [ "@ADMIN_USER@" ] [ adminUser ] text;
|
|
|
|
flakeText = substitute (builtins.readFile ../../templates/home-flake.nix);
|
|
homeText = substitute (builtins.readFile ../../templates/home-home.nix);
|
|
in
|
|
{
|
|
environment.etc = {
|
|
"skel/.config/home-manager/flake.nix".text = flakeText;
|
|
"skel/.config/home-manager/home.nix".text = homeText;
|
|
};
|
|
}
|