No description
Erwin Boskma
1db9542cf0
Flake lock file updates: • Updated input 'caddy-with-plugins': 'github:eboskma/caddy-with-plugins/bb26c2e7fa43be39d4d184c0d443d649cda91897?narHash=sha256-bTVj6mAr%2BNAqwzVhHBBhOszRpWiNYglp93aNIzukiYE%3D' (2024-04-16) → 'github:eboskma/caddy-with-plugins/c6ff99288a79ed98482759e4feea0b90ade9219b?narHash=sha256-j3hBTCwO0T%2BfkSLm2jN1MhXuOYLtsLK5nGMz%2Bz44L%2Bg%3D' (2024-06-08) |
||
---|---|---|
.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 |