No description
Erwin Boskma
0b189f2c93
• Updated input 'disko': 'github:nix-community/disko/a683b848c3c9dd81e9639dc3fd9c5329fd4294a4' (2023-03-13) → 'github:nix-community/disko/90eb730691453f25d1a1cd6090ef74d019fb6bec' (2023-03-14) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b9274d63c2bc76e062a269f533c9f4a2bbf1e1d8' (2023-03-13) → 'github:nix-community/emacs-overlay/bc4f7dd7633bdefc2080b79fd12f171b85d3a1d5' (2023-03-15) • Updated input 'home-manager': 'github:nix-community/home-manager/7fe539dfbba8a158a455b54697d1bd7e97b37c60' (2023-03-13) → 'github:nix-community/home-manager/215af6252d939a936b41dbd85e94d22e874ad990' (2023-03-15) • Updated input 'nil': 'github:oxalica/nil/2552c08e3967e3a5137d7d3db0af5166877d4630' (2023-03-11) → 'github:oxalica/nil/e7045f1779fd202a3316f84b864c304f339cccea' (2023-03-13) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/f25d4bc2f6a0a3f9a2f15d3b9e3edb0ee5099a3d' (2023-03-13) → 'github:oxalica/rust-overlay/35f8293d6e58d14c6255d40be7bed3389d08701a' (2023-03-15) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 |