default flake for nh

This commit is contained in:
Chris Dombroski 2024-11-13 11:19:25 -05:00
parent 21fbfb82e4
commit ec64b11b15
3 changed files with 17 additions and 10 deletions

View file

@ -1,10 +1,18 @@
{ pkgs, lib, config, ... }: {
pkgs,
lib,
config,
...
}:
{ {
programs.git.enable = true; programs.git.enable = true;
programs.nh = { programs.nh = {
enable = true; enable = true;
clean.enable = true; clean = {
clean.extraArgs = "--keep-since 7d"; enable = true;
extraArgs = "--keep-since 7d";
};
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
}; };
nix = { nix = {
@ -22,7 +30,10 @@
enable = true; enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git"; flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
allowReboot = true; allowReboot = true;
flags = lib.lists.optionals config.nixpkgs.hostPlatform.isAarch64 [ "--build-host" "zeus" ]; flags = lib.lists.optionals config.nixpkgs.hostPlatform.isAarch64 [
"--build-host"
"zeus"
];
rebootWindow = { rebootWindow = {
lower = "02:00"; lower = "02:00";
upper = "06:00"; upper = "06:00";

View file

@ -1,8 +1,4 @@
{ { pkgs, config, ... }:
pkgs,
config,
...
}:
{ {
sops.secrets = { sops.secrets = {
"root/password" = { "root/password" = {