add nh
This commit is contained in:
parent
e2d8580c1b
commit
e3b72e8e35
2 changed files with 10 additions and 4 deletions
|
@ -106,7 +106,7 @@
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
system.autoUpgrade.enable = false;
|
system.autoUpgrade.enable = false;
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = false;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 10d";
|
options = "--delete-older-than 10d";
|
||||||
};
|
};
|
||||||
|
@ -226,6 +226,12 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 10d --keep 5";
|
||||||
|
flake = "/home/insert/Documents/nixos";
|
||||||
|
};
|
||||||
|
|
||||||
services.rpcbind.enable = true; # needed for NFS
|
services.rpcbind.enable = true; # needed for NFS
|
||||||
systemd.mounts = [{
|
systemd.mounts = [{
|
||||||
|
|
6
home.nix
6
home.nix
|
@ -170,9 +170,9 @@
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
update = "sudo nixos-rebuild switch --flake /home/insert/Documents/nixos# -v --impure --upgrade --option commit-lockfile-summary 'Update flake.lock' --commit-lock-file";
|
update = "nh os switch -a /home/insert/Documents/nixos -- --impure --option commit-lockfile-summary 'Update flake.lock' --commit-lock-file";
|
||||||
update-locked = "sudo nixos-rebuild switch --flake /home/insert/Documents/nixos# -v --impure";
|
update-locked = "nh os switch -a /home/insert/Documents/nixos -- --impure";
|
||||||
update-boot = "sudo nixos-rebuild boot --flake /home/insert/Documents/nixos# -v --impure";
|
update-boot = "nh os boot -a /home/insert/Documents/nixos -- --impure";
|
||||||
garbage = "nix-collect-garbage";
|
garbage = "nix-collect-garbage";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
|
Loading…
Reference in a new issue