No description
Erwin Boskma
b18e2d2026
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3fa8724200bc0329d2d7ca3becf623dbed61431b' (2023-11-21) → 'github:nix-community/emacs-overlay/00fe9cdc30398cb126f104a8bebbfaf3b2344ccb' (2023-11-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/6da9555a6d691bcdf43f90d8fd445e96d246f807' (2023-11-21) → 'github:oxalica/rust-overlay/7c94410d52d4e8bd72803fc1fe6c51fe179edaf5' (2023-11-22) |
||
---|---|---|
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 |