No description
Erwin Boskma
7a61a9b2b2
Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/e5c8d2d50981a34602358d917e7be011b2c397a8?narHash=sha256-f3bKclEV5t1eP1OH7kTGv/tLzlToSRIe0ktkdl1jihw%3D' (2024-10-10) → 'github:zhaofengli/attic/2b05b7d986cf6009b1c1ef7daa4961cd1a658782?narHash=sha256-NnLMLIXGZtAscUF4dCShksuQ1nOGF6Y2dEeyj0rBbUg%3D' (2024-10-16) • Updated input 'disko': 'github:nix-community/disko/3b778f10eb275573da9f5c8a7a49e774200b87e5?narHash=sha256-FegyBabjV4868aJUbvFtqH0zKDEtUpeCAfnB1vWXeBg%3D' (2024-10-14) → 'github:nix-community/disko/d7d57edb72e54891fa67a6f058a46b2bb405663b?narHash=sha256-VftVIg7UXTy1bq%2Btzi1aVYOWl7PQ35IpjW88yMYjjpc%3D' (2024-10-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b195d7067b4f14651ed55660d7a9a3d8e38afc6d?narHash=sha256-oP4ocNELjYaIjpjq7GOqrMjgc6IfxmFh34UxnzZYEFI%3D' (2024-10-15) → 'github:nix-community/emacs-overlay/3ff861b0b86704afa226b70312b584bfcdb46bd7?narHash=sha256-U1bIksHGGN/bObrRoiJxov51rVM3A5gNqw5oamo7yEI%3D' (2024-10-17) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/a3f9ad65a0bf298ed5847629a57808b97e6e8077?narHash=sha256-u%2BrxA79a0lyhG%2Bu%2BoPBRtTDtzz8kvkc9a6SWSt9ekVc%3D' (2024-10-12) → 'github:NixOS/nixpkgs/c0b1da36f7c34a7146501f684e9ebdf15d2bebf8?narHash=sha256-WLxED18lodtQiayIPDE5zwAfkPJSjHJ35UhZ8h3cJUg%3D' (2024-10-14) • Updated input 'home-manager': 'github:nix-community/home-manager/e1aec543f5caf643ca0d94b6a633101942fd065f?narHash=sha256-ZHFrGNWDDriZ4m8CA/5kDa250SG1LiiLPApv1p/JF0o%3D' (2024-10-14) → 'github:nix-community/home-manager/2a4fd1cfd8ed5648583dadef86966a8231024221?narHash=sha256-IqWD7bA9iJVifvJlB4vs2KUXVhN%2Bd9lECWdNB4jJ0tE%3D' (2024-10-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7?narHash=sha256-9UTxR8eukdg%2BXZeHgxW5hQA9fIKHsKCdOIUycTryeVw%3D' (2024-10-09) → 'github:nixos/nixpkgs/a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c?narHash=sha256-nsNdSldaAyu6PE3YUA%2BYQLqUDJh%2BgRbBooMMekZJwvI%3D' (2024-10-14) • Updated input 'pre-commit-hooks': 'github:cachix/git-hooks.nix/ff68f91754be6f3427e4986d7949e6273659be1d?narHash=sha256-WybK5E3hpGxtCYtBwpRj1E9JoiVxe%2B8kX83snTNaFHE%3D' (2024-10-13) → 'github:cachix/git-hooks.nix/3c3e88f0f544d6bb54329832616af7eb971b6be6?narHash=sha256-pZRZsq5oCdJt3upZIU4aslS9XwFJ%2B/nVtALHIciX/BI%3D' (2024-10-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/4c6e317300f05b8871f585b826b6f583e7dc4a9b?narHash=sha256-fp4he1QQjE%2BvasDMspZYeXrwTm9otwEqLwEN6FKZ5v0%3D' (2024-10-15) → 'github:oxalica/rust-overlay/32d889f9b9fc65cb65aa2d5db282d60ed06f348e?narHash=sha256-Mhl4T7gDGknG4nPbHNSGWynfSjZeoWBdsaIzhUYuIlU%3D' (2024-10-17) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/4446c7a6fc0775df028c5a3f6727945ba8400e64?narHash=sha256-xpRqITAoD8rHlXQafYZOLvUXCF6cnZkPfoq67ThN0Hc%3D' (2024-10-03) → 'github:numtide/treefmt-nix/5307ba60125bb024d7e52d71d582eafd511f3fee?narHash=sha256-zayHqZO9gA1U85c4CPvVSnLV8/cBgc2yVrSKWaKeBUs%3D' (2024-10-16) |
||
---|---|---|
.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 |