No description
Erwin Boskma
d96da2f3b6
• Updated input 'disko': 'github:nix-community/disko/29d632d7e8fa86f937153ecdfd7d768411001d2d' (2023-06-05) → 'github:nix-community/disko/f1178c6e72b7d8ab2b55990397969324822275eb' (2023-06-07) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/fe83f47d0a8240ec1d81928705f6b02dc722fbbd' (2023-06-07) → 'github:nix-community/emacs-overlay/bdc9dc52f1ae9772ebdca1f132554fe548392001' (2023-06-08) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/70f7275b32f49bc67ae3532b758b80cb6c27f98a' (2023-06-05) → 'github:NixOS/nixpkgs/a558f7ac29f50c4b937fb5c102f587678ae1c9fb' (2023-06-06) • Updated input 'home-manager': 'github:nix-community/home-manager/3512a6dafb7836cfceef00dcb29ce6f01c2ce280' (2023-06-07) → 'github:nix-community/home-manager/cc6745b35fefe48624ebf573382e1e0e4a6fe85e' (2023-06-07) • Updated input 'microvm': 'github:astro/microvm.nix/c6416c6b9fed22b71f526720cb120b0218c51b62' (2023-06-06) → 'github:astro/microvm.nix/53155678bf68be0dadbe31e114971846dccba9e7' (2023-06-07) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/7409480d5c8584a1a83c422530419efe4afb0d19' (2023-06-05) → 'github:nixos/nixpkgs/4729ffac6fd12e26e5a8de002781ffc49b0e94b7' (2023-06-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1279a72003f5e4b08c8eca1101d8f57452a539f9' (2023-06-07) → 'github:oxalica/rust-overlay/b4b71458b92294e8f1c3a112d972e3cff8a2ab71' (2023-06-08) |
||
---|---|---|
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 |