No description
Erwin Boskma
5c927d5b15
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/a160e897d1f9f3b0fedf191a79d8ab99a09bcfd6' (2023-05-08) → 'github:nix-community/emacs-overlay/592163607796fde463be9ef4a274199587fd0578' (2023-05-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/75b07756c3feb22cf230e75fb064c1b4c725b9bc' (2023-05-08) → 'github:oxalica/rust-overlay/0cef0c3ed57980dc9a8b916e6b596d7f2f6d34f1' (2023-05-09) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.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 exa 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 |