initial commit

This commit is contained in:
gwg313 2026-04-15 18:26:05 -04:00
commit ebc1be5217
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
143 changed files with 7721 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ ... }:
{
config.dendritic.features.nh = {
homeModules = [
(
{ config, ... }:
let
NH_NO_CHECKS = "1";
configFor = flakePath: {
enable = true;
clean = {
enable = true;
extraArgs = "--keep 3 --keep-since 8d";
};
flake = flakePath;
};
in
{
home.sessionVariables = {
inherit NH_NO_CHECKS;
};
programs.nh = configFor "${config.home.homeDirectory}/nix-config";
}
)
];
nixosModules = [
(
{ config, ... }:
let
NH_NO_CHECKS = "1";
user = config.dendritic.current.primaryUser;
configFor = flakePath: {
enable = true;
clean = {
enable = true;
extraArgs = "--keep 3 --keep-since 8d";
};
flake = flakePath;
};
in
{
environment.variables = {
inherit NH_NO_CHECKS;
};
programs.nh = configFor "/home/${user}/nix-config";
}
)
];
};
}