No description
Erwin Boskma
74836abda9
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/36ddd98b6ef86af9b00d93d28476900b07be34ac?narHash=sha256-o3MQNItFgGrpAoBpDwJIeHkIxTPQT9QR6AcGTeeIkK4%3D' (2024-04-26) → 'github:atuinsh/atuin/cea48a1545250429b78235b2ad00b8243923e2b2?narHash=sha256-x3t7p0zXyd6NNKHi3XckhdoMuRUe%2BMxG97JhuS5RLVE%3D' (2024-04-29) • Updated input 'disko': 'github:nix-community/disko/285e26465a0bae510897ca04da26ce6307c652b4?narHash=sha256-kcBiIrmqzt3bNTr2GMBfAyA%2Bon8BEKO1iKzzDFQZkjI%3D' (2024-04-26) → 'github:nix-community/disko/5eaf747af38dd272e1ab28a8ec4bd972424b07cf?narHash=sha256-h3pOvHCXkSdp1KOZqtkQmHgkR7VaOJXDhqhumk7sZLY%3D' (2024-04-29) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/175801574b4bafe2ce03d6d0ae0e69b47e3ac805?narHash=sha256-XV%2Bai9ezP2d%2BUa3p%2BNF5ulYBZuv3i9KZCHr9Y2mh1lc%3D' (2024-04-29) → 'github:nix-community/emacs-overlay/2bdab12a3077f6f25be03d93569a06a177425c47?narHash=sha256-g4rDy84zObNUXmDyhXn66ro9fhpVnHg4lVQl0eZUKyY%3D' (2024-04-30) • Updated input 'home-manager': 'github:nix-community/home-manager/9fe79591c1005ce6f93084ae7f7dab0a2891440d?narHash=sha256-OzD1P0o46uD3Ix4ZI/g9z3YAeg%2B4g%2BW3qctB6bNOReo%3D' (2024-04-28) → 'github:nix-community/home-manager/f8e6694edabe4aaa7a85aac47b43ea5d978b116d?narHash=sha256-SSJQ/KOy8uISnoZgqDoRha7g7PFLSFP/BtMWm0wUz8Q%3D' (2024-04-29) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/d9b44509b4064f0a3fc9c7c92a603861f52fbedc?narHash=sha256-W6Mss7AG6bnFT1BqRApHXvLXBrFOu7V0%2BEUe9iML30s%3D' (2024-04-29) → 'github:oxalica/rust-overlay/ce35c36f58f82cee6ec959e0d44c587d64281b6f?narHash=sha256-lKTA3XqRo4aVgkyTSCtpcALpGXdmkilHTtN00eRg0QU%3D' (2024-04-30) |
||
---|---|---|
.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 | ||
krops.nix | ||
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 |