No description
Erwin Boskma
991fde692d
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/f1b1786ea77739dcd181b920d430e30fb1608b8a?narHash=sha256-f9UyHMTb%2BBwF6RDZ8eO9HOkSlKeeSPBlcYhMmV1UNIk%3D' (2024-12-23) → 'github:nix-community/home-manager/35b98d20ca8f4ca1f6a2c30b8a2c8bb305a36d84?narHash=sha256-Gm%2B0DcbUS338vvkwyYWms5jsWlx8z8MeQBzcnIDuIkw%3D' (2024-12-24) • Updated input 'microvm': 'github:astro/microvm.nix/3910e65c3d92c82ea41ab295c66df4c0b4f9e7b3?narHash=sha256-51bhaMe8BZuNAStUHvo07nDO72wmw8PAqkSYH4U31Yo%3D' (2024-12-12) → 'github:astro/microvm.nix/2ae08de8e8068b00193b9cfbc0acc9dfdda03181?narHash=sha256-CeYsC8J2dNiV2FCQOxK1oZ/jNpOF2io7aCEFHmfi95U%3D' (2024-12-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/fb5fdba697ee9a2391ca9ceea3b853b4e3ce37a5?narHash=sha256-NdhUgB9BkLGW9I%2BQ1GyUUCc3CbDgsg7HLWjG7WZBR5Q%3D' (2024-12-24) → 'github:oxalica/rust-overlay/550e1f10be4a504747a7894c35e887e61235763b?narHash=sha256-ceUDFBsLf5Cz3GlhQAdaJsEfi5s1MDjDsO9VvPFoKAE%3D' (2024-12-26) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/e41e948cf097cbf96ba4dff47a30ea6891af9f33?narHash=sha256-N7M37KP7cHWoXicuE536GrVvU8nMDT/gpI1kja2hkdg%3D' (2024-12-23) → 'github:numtide/treefmt-nix/9e09d30a644c57257715902efbb3adc56c79cf28?narHash=sha256-8T3K5amndEavxnludPyfj3Z1IkcFdRpR23q%2BT0BVeZE%3D' (2024-12-25) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
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 |