No description
Erwin Boskma
8479be8f09
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/f6d0e3fca9097209f44dcfba704cda5d2c4be957?narHash=sha256-X4X/9Rd8w4Q/auq6b2JdaxoAAU38njniVrJwstdUxH0%3D' (2024-11-16) → 'github:nix-community/emacs-overlay/cfbfcbbd057e695106ab9a7871a66834ee8d1b41?narHash=sha256-dnA7yqsHZ05O%2BqykVzf%2B2%2B31p0rW5MZDoiyHvxGmn2U%3D' (2024-11-16) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |