feat(nix): configure nh

This commit is contained in:
Michael Thomas 2025-05-17 15:57:20 -04:00
parent 86c3bbc1e6
commit b4cd8edacd
2 changed files with 29 additions and 19 deletions

View File

@ -3,25 +3,35 @@
pkgs,
...
}: {
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
nix = {
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
optimise.automatic = true;
settings = {
extra-experimental-features = [
"flakes"
"nix-command"
];
keep-outputs = true;
log-lines = 25;
tarball-ttl = 43200;
trusted-users = [
"root"
config.my.user
];
};
package = pkgs.nix;
};
nix.optimise.automatic = true;
nix.settings = {
extra-experimental-features = [
"flakes"
"nix-command"
];
keep-outputs = true;
log-lines = 25;
tarball-ttl = 43200;
trusted-users = [
"root"
config.my.user
];
};
nix.package = pkgs.nix;
environment.systemPackages = with pkgs; [
unstable.nh
];
# TODO: make sure hostnames always match flake output name
environment.variables."NH_FLAKE" = ''${config.hm.home.homeDirectory}/Projects/nix-dots'';
programs.zsh.enable = true;
time.timeZone = "America/New_York";
}

View File

@ -30,7 +30,7 @@
);
in {
flake.darwinConfigurations = {
mac = mkDarwin {
neptune = mkDarwin {
modules = [
{
hm = import ../user/environments/mac/home.nix;