No description
Erwin Boskma
e4bc570f96
• Updated input 'disko': 'github:nix-community/disko/637d87df3fd265a1d1669d897ad9436a87fc5ad8' (2023-06-22) → 'github:nix-community/disko/fef67a1ddc293b595d62a660f57deabbcb70ff95' (2023-06-26) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/29ad7704a8191bd9170ee7e50ae222f88fb675f9' (2023-06-23) → 'github:nix-community/emacs-overlay/41f4d133abf0a955e138397754b6ced199c3a6aa' (2023-06-26) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/ef0bc3976340dab9a4e087a0bcff661a8b2e87f3' (2023-06-21) → 'github:NixOS/nixpkgs/33223d479ffde3d05ac16c6dff04ae43cc27e577' (2023-06-23) • Updated input 'flake-utils': 'github:numtide/flake-utils/abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c' (2023-06-19) → 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25) • Updated input 'home-manager': 'github:nix-community/home-manager/d2b6f2d154bf6b27a93ed895392f80c503df7cfa' (2023-06-23) → 'github:nix-community/home-manager/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179' (2023-06-24) • Updated input 'nil': 'github:oxalica/nil/c7453bb3ea8a0ee5826ed6b068c7b2dfe2cd43ba' (2023-06-23) → 'github:oxalica/nil/e727e5556564966fb3f023f16a165067ced4ad8d' (2023-06-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e603dc5f061ca1d8a19b3ede6a8cf9c9fcba6cdc' (2023-06-22) → 'github:nixos/nixpkgs/3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f' (2023-06-23) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/fc0a266e836c079a9131108f4334e5af219dbb93' (2023-06-22) → 'github:oxalica/rust-overlay/b91d162355e88de89b379f3d6a459ade92704474' (2023-06-26) |
||
---|---|---|
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 exa 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 |