No description
Erwin Boskma
fc7edd3193
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/8767dbf5d723b1b6834f4d09b217da7c31580d58?narHash=sha256-h%2BbFEQHQ46pBkEsOXbxmmY6QNPPGrgpDbNlHtAKG49M%3D' (2024-06-27) → 'github:nix-community/disko/423b86a7f756421325e71663ada79a199bf13408?narHash=sha256-ZEJFGHnElbMH3JgnFANxOlJgniFamu9MemvHCMQZtpA%3D' (2024-06-29) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/e3a4b715f2a60efafa9cbe6bfa6b8bb5b659a381?narHash=sha256-HZQ9UCGpcQSrAz335utn5CXkUr2OHyoqipDTQI6/3%2Bk%3D' (2024-06-28) → 'github:nix-community/emacs-overlay/012409732a53433d75db7bb2e06dd0bdaf8ca7ea?narHash=sha256-DbB/SQVaF%2BB%2BI5KAU7%2Bc/8tvlg86ZJ7X0IDSTPuIXec%3D' (2024-06-29) • Updated input 'home-manager': 'github:nix-community/home-manager/1a4f12ae0bda877ec4099b429cf439aad897d7e9?narHash=sha256-/Vmso2ZMoFE3M7d1MRsQ2K5sR8CVKnrM6t1ys9Xjpz4%3D' (2024-06-26) → 'github:nix-community/home-manager/7e68e55d2e16d3a1e92a679430728c35a30fd24e?narHash=sha256-A03i8xiVgP14DCmV5P7VUv37eodCjY4e1iai0b2EuuM%3D' (2024-06-28) • Updated input 'nix-ld-rs': 'github:nix-community/nix-ld-rs/e5d3e7ebee7fd7b3c8e3474500c9b23c3b9a8470?narHash=sha256-0AuqE8iB4/pxVH9sPl6zY62uavfsDp7Fvyy0iGcOw54%3D' (2024-06-28) → 'github:nix-community/nix-ld-rs/b2f0f998b5391e827615be1441787573da1bf342?narHash=sha256-J86zYcke2RUKGGKFWDkRUxJoPAuvpQ4xHilVkSxwb6s%3D' (2024-06-29) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/3980e7816c99d9e4da7a7b762e5b294055b73b2f?narHash=sha256-PX3msbC5KdwCDnucGtir3qzlzv%2B1fuiU4tk17nljFIE%3D' (2024-06-28) → 'github:NixOS/nixos-hardware/231274268ff2250d4730e274b808f66ef91b6381?narHash=sha256-OvX/qQQ33zyB5ReRzm%2BU5%2B9Hh6EeYxHdd21tXL3p/eY%3D' (2024-06-29) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2893f56de08021cffd9b6b6dfc70fd9ccd51eb60?narHash=sha256-ECni%2BIkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko%3D' (2024-06-24) → 'github:nixos/nixpkgs/b2852eb9365c6de48ffb0dc2c9562591f652242a?narHash=sha256-C8e9S7RzshSdHB7L%2Bv9I51af1gDM5unhJ2xO1ywxNH8%3D' (2024-06-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ed12832f267ab223cd085b0bd6ee3432caa69067?narHash=sha256-YdHqW6EM5pXMwXHhC%2BKniBv3aquXuJrFar2XXaV7x%2Bc%3D' (2024-06-28) → 'github:oxalica/rust-overlay/5be53be9e5c766fc72fc5d65ba8a566cc0c3217f?narHash=sha256-LBfULF%2B2sCaWmkjmj1LkkGrAS/E9ZdXU1A5wWKjt9p0%3D' (2024-06-29) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
README.org | ||
statix.toml |
Erwin's NixOS config
This configures my machines.
Useful oneliners
Remove all files except the smallest
$ ls -s size | head -n 1 | xargs stat -c %s | awk '{print $1 + 1}' | xargs -I '%S' fd -S +%Sb -X rm {} \;
cmd | Explanation |
---|---|
ls -s size |
List all files, sort by size (ls is aliased to eza in my setup) |
head -n 1 |
Take the first line |
xargs stat -c %s |
Print the size in bytes |
awk '{print $1 + 1} |
Add one to it |
xargs -I '%S' fd -S +%Sb -X rm {} \; |
Find all files larger than the smallest and delete them |