initial commit
This commit is contained in:
commit
ebc1be5217
143 changed files with 7721 additions and 0 deletions
59
modules/features/ops/ops-nh.nix
Normal file
59
modules/features/ops/ops-nh.nix
Normal 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";
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue