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,12 +3,13 @@
pkgs, pkgs,
... ...
}: { }: {
nix.gc = { nix = {
gc = {
automatic = true; automatic = true;
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
nix.optimise.automatic = true; optimise.automatic = true;
nix.settings = { settings = {
extra-experimental-features = [ extra-experimental-features = [
"flakes" "flakes"
"nix-command" "nix-command"
@ -21,7 +22,16 @@
config.my.user config.my.user
]; ];
}; };
nix.package = pkgs.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; programs.zsh.enable = true;
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
} }

View File

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