Skip to content

Instantly share code, notes, and snippets.

View aikomastboom's full-sized avatar

Aiko Mastboom aikomastboom

View GitHub Profile
@0atman
0atman / configuration.nix
Last active March 18, 2025 11:07
A rebuild script that commits on a successful build
{
config,
pkgs,
options,
...
}: let
hostname = "oatman-pc"; # to alllow per-machine config
in {
networking.hostName = hostname;
# nix-env -p /nix/var/nix/profiles/system --delete-generations old
# nix-collect-garbage -d
# nix-env -p /nix/var/nix/profiles/system --list-generations
## Remove entries from /boot/loader/entries:
# sudo bash -c "cd /boot/loader/entries; ls | grep -v <current-generation-name> | xargs rm"