No description
Erwin Boskma
93a16c9553
• Updated input 'disko': 'github:nix-community/disko/f0b9f374bb42fdcd57baa7d4448ac5d4788226bd' (2023-05-22) → 'github:nix-community/disko/0d270372b21818eba342954220c1a30a7bdaba19' (2023-05-30) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/6ec9045f8b81b187d0628a8986ca47e163f90285' (2023-05-28) → 'github:nix-community/emacs-overlay/7735f53ef8f28d80ca5339e486e29177ed7c8297' (2023-05-30) • Updated input 'home-manager': 'github:nix-community/home-manager/2d963854ae2499193c0c72fd67435fee34d3e4fd' (2023-05-27) → 'github:nix-community/home-manager/9f82227b64245c273d98dd02dedd44fc7576041e' (2023-05-30) • Updated input 'microvm': 'github:astro/microvm.nix/738db09b400f556bf13925f647a16d5578e377a1' (2023-05-27) → 'github:astro/microvm.nix/3683f43a37568fbc14bdc1c952acb41b0bb09a01' (2023-05-29) • Updated input 'nil': 'github:oxalica/nil/ca462183c525b5a950912f98815b7d290218f1d3' (2023-05-28) → 'github:oxalica/nil/0158d58d47abecd7f5f4e67c06365ff77bbedbc7' (2023-05-30) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e10802309bf9ae351eb27002c85cfdeb1be3b262' (2023-05-27) → 'github:nixos/nixpkgs/5e871d8aa6f57cc8e0dc087d1c5013f6e212b4ce' (2023-05-29) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/61e567d6497bc9556f391faebe5e410e6623217f' (2023-05-23) → 'github:cachix/pre-commit-hooks.nix/ca2fdbf3edda2a38140184da6381d49f8206eaf4' (2023-05-29) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/aa1b08de9ca770534ad750dccc70cebd95c15e26' (2023-05-28) → 'github:oxalica/rust-overlay/9b3284e2412f76bd68ff46f8cf1c7af44d7ffac0' (2023-05-30) • Updated input 'sops': 'github:Mic92/sops-nix/3e016341d4dca6ce7c62316f90e66341841a30f9' (2023-05-28) → 'github:Mic92/sops-nix/876846cde9762ae563f018c17993354875e2538e' (2023-05-30) |
||
---|---|---|
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 |