No description
Erwin Boskma
75e689cc21
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/30d50ec907edd37cafd215a922e97a0d58af4994' (2023-05-26) → 'github:nix-community/emacs-overlay/6ec9045f8b81b187d0628a8986ca47e163f90285' (2023-05-28) • Updated input 'home-manager': 'github:nix-community/home-manager/d1f04b0f365a34896a37d9015637796537ec88a3' (2023-05-25) → 'github:nix-community/home-manager/2d963854ae2499193c0c72fd67435fee34d3e4fd' (2023-05-27) • Updated input 'microvm': 'github:astro/microvm.nix/583785ae6c046288c8451667f3182ffee9662006' (2023-05-24) → 'github:astro/microvm.nix/738db09b400f556bf13925f647a16d5578e377a1' (2023-05-27) • Updated input 'nil': 'github:oxalica/nil/17ed1578f3a225f2760d4da3adb440eb8677f2d3' (2023-05-19) → 'github:oxalica/nil/ca462183c525b5a950912f98815b7d290218f1d3' (2023-05-28) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/f91ee3065de91a3531329a674a45ddcb3467a650' (2023-05-24) → 'github:nixos/nixpkgs/e10802309bf9ae351eb27002c85cfdeb1be3b262' (2023-05-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b51083ca078b79db94e954e63655ba754956d7ef' (2023-05-26) → 'github:oxalica/rust-overlay/aa1b08de9ca770534ad750dccc70cebd95c15e26' (2023-05-28) • Updated input 'sops': 'github:Mic92/sops-nix/4ccdfb573f323a108a44c13bb7730e42baf962a9' (2023-05-21) → 'github:Mic92/sops-nix/3e016341d4dca6ce7c62316f90e66341841a30f9' (2023-05-28) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/d0dade110dc7072d67ce27826cfe9ab2ab0cf247' (2023-05-21) → 'github:NixOS/nixpkgs/ba6e4ddeb3e8ad3f3e3bec63dafbc9fe558729bb' (2023-05-27) |
||
---|---|---|
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 |