Stylix follows nixpkgs, weekly GC, drop VMs and Flatnotes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a8e5844579
commit
50ec04534e
13 changed files with 21 additions and 134 deletions
14
common.nix
14
common.nix
|
|
@ -123,7 +123,6 @@ in
|
|||
./services/sabnzbd.nix
|
||||
./services/forgejo-runner.nix
|
||||
./services/code-server.nix
|
||||
./services/memos.nix
|
||||
./services/redlib.nix
|
||||
./services/hardware-health.nix
|
||||
./services/wan-watchdog.nix
|
||||
|
|
@ -202,9 +201,6 @@ in
|
|||
# live generation still has the old one: eval and build right here.
|
||||
update2 = localUpdate;
|
||||
clean = "sudo nix-collect-garbage -d";
|
||||
# Throw away the VM's disk first so every run is a real first boot —
|
||||
# greeter, Plasma first-run, the lot. Builds into ./result in $PWD.
|
||||
kaylavm = "rm -f FredOS-Kayla.qcow2 && nixos-rebuild build-vm --refresh --flake git+https://forg.gregersen.it/rope/nixos#kayla-vm && ./result/bin/run-FredOS-Kayla-vm";
|
||||
ll = "ls -alh";
|
||||
clear = "command clear";
|
||||
reboot = "bash -c 'if [ \"$(hostname)\" = \"FredOS-Mediaserver\" ]; then read -r -p \"Reboot $(hostname)? [y/N] \" confirm; case \"$confirm\" in [Yy]) ;; *) exit 0 ;; esac; fi; sudo systemctl reboot'";
|
||||
|
|
@ -229,6 +225,16 @@ in
|
|||
# optimise` by hand there if the store ever gets fat.
|
||||
nix.settings.auto-optimise-store = !isMacbook;
|
||||
|
||||
# Weekly GC keeps two weeks of rollbacks; min-free/max-free also collect
|
||||
# mid-build if the disk is about to fill.
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
nix.settings.min-free = 5 * 1024 * 1024 * 1024;
|
||||
nix.settings.max-free = 20 * 1024 * 1024 * 1024;
|
||||
|
||||
# Offload builds to the media server. Excluded on the server itself to
|
||||
# avoid a pointless SSH round-trip to localhost.
|
||||
nix.distributedBuilds =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue