feat(nix): configure nh
This commit is contained in:
parent
86c3bbc1e6
commit
b4cd8edacd
@ -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";
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
);
|
||||
in {
|
||||
flake.darwinConfigurations = {
|
||||
mac = mkDarwin {
|
||||
neptune = mkDarwin {
|
||||
modules = [
|
||||
{
|
||||
hm = import ../user/environments/mac/home.nix;
|
||||
|
Loading…
x
Reference in New Issue
Block a user