No description
Erwin Boskma
5603e750e4
Flake lock file updates: • Updated input 'ha-now-playing': 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=2e72629aec89c5c3ac2cb07e5961c1c20bb91c0b' (2023-09-28) → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=8f1b9b7f9c10bdf0992547910821357038e2ec85' (2023-09-29) |
||
---|---|---|
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 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 |