This commit is contained in:
Simon Gardling 2024-10-20 20:46:51 -04:00
parent 641fca8001
commit 2e761cb0c2
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
4 changed files with 15 additions and 15 deletions

View File

@ -16,13 +16,6 @@
]; ];
nix = { nix = {
# garbage collection and cleanup stuff
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# optimize the store # optimize the store
optimise.automatic = true; optimise.automatic = true;
@ -33,6 +26,13 @@
]; ];
}; };
# https://github.com/viperML/nh
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
};
# kernel options # kernel options
boot = { boot = {
kernelPackages = pkgs.linuxPackages_cachyos-lto; kernelPackages = pkgs.linuxPackages_cachyos-lto;

6
etcnixos/flake.lock generated
View File

@ -287,11 +287,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729468141, "lastModified": 1729471405,
"narHash": "sha256-svEr78EEBcjQJaiZpaPtk+v2g+ok8EjeSYg0AnSyPxk=", "narHash": "sha256-QNH6AVw/p0iMMj36RumeXNpqhFFrXyxIzAn5H+dwR+Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "13bb3040aebb54bb116f2450eba78afa6ecaaffb", "rev": "dfd24c1593f41213e73e90effbbd963a45cd9413",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -146,11 +146,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729468141, "lastModified": 1729471405,
"narHash": "sha256-svEr78EEBcjQJaiZpaPtk+v2g+ok8EjeSYg0AnSyPxk=", "narHash": "sha256-QNH6AVw/p0iMMj36RumeXNpqhFFrXyxIzAn5H+dwR+Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "13bb3040aebb54bb116f2450eba78afa6ecaaffb", "rev": "dfd24c1593f41213e73e90effbbd963a45cd9413",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -8,12 +8,12 @@ format_system:
system_update: system_update:
doas nix flake update --flake /etc/nixos doas nix flake update --flake /etc/nixos
doas nixos-rebuild boot --impure nh os boot /etc/nixos -- --impure
home_update: home_update:
nix flake update --flake ~/.config/home-manager nix flake update --flake ~/.config/home-manager
rm -fr ~/.gtkrc-2.0 rm -fr ~/.gtkrc-2.0
home-manager switch --impure nh home switch ~/.config/home-manager -- --impure
sync_configs: format_home format_system sync_configs: format_home format_system
rsync -a --delete /etc/nixos/ ~/projects/configs/dotfiles/etcnixos/ rsync -a --delete /etc/nixos/ ~/projects/configs/dotfiles/etcnixos/