No description
Erwin Boskma
5e22b4b8bb
Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/e6bedf1869f382cfc51b69848d6e09d51585ead6' (2024-01-02) → 'github:zhaofengli/attic/fbe252a5c21febbe920c025560cbd63b20e24f3b' (2024-01-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/4baba64e8088c2cdbde661d6697d1fff3ba59f6d' (2024-01-18) → 'github:nix-community/emacs-overlay/dc3dafe421095791e2dacf2b03e1686365160d35' (2024-01-19) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/b8dd8be3c790215716e7c12b247f45ca525867e2' (2024-01-15) → 'github:NixOS/nixpkgs/8bf65f17d8070a0a490daf5f1c784b87ee73982c' (2024-01-17) • Updated input 'microvm': 'github:astro/microvm.nix/088ba565537eaef1041a87be5a44ca0daa4e1908' (2024-01-14) → 'github:astro/microvm.nix/ca69f1cf1cad946ccd04e476cc3822ae7088267d' (2024-01-19) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ff3e4b3ee418009886848d48e4ba236a2f9de789' (2024-01-18) → 'github:oxalica/rust-overlay/47cac072a313d9cce884b9ea418d2bf712fa23dd' (2024-01-19) |
||
---|---|---|
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 |