No description
Erwin Boskma
03942eca29
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/d0b4408eaf782a1ada0a9133bb1cecefdd59c696' (2024-01-15) → 'github:nix-community/disko/0033adc6e3f1ed076f3ed1c637ef1dfe6bef6733' (2024-01-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/bd632887992dea09e08244c2f7c632c3590ab9dc' (2024-01-16) → 'github:nix-community/emacs-overlay/4baba64e8088c2cdbde661d6697d1fff3ba59f6d' (2024-01-18) • Updated input 'home-manager': 'github:nix-community/home-manager/fa152fd745b816dcfc751962f2e20c8669aed8f1' (2024-01-16) → 'github:nix-community/home-manager/b84191db127c16a92cbdf7f7b9969d58bb456699' (2024-01-17) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9b19f5e77dd906cb52dade0b7bd280339d2a1f3d' (2024-01-13) → 'github:nixos/nixpkgs/842d9d80cfd4560648c785f8a4e6f3b096790e19' (2024-01-17) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b21f3c0d5bf0f0179f5f0140e8e0cd099618bd04' (2024-01-16) → 'github:oxalica/rust-overlay/ff3e4b3ee418009886848d48e4ba236a2f9de789' (2024-01-18) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.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 |