No description
Erwin Boskma
4978bc1bb3
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/41f4d133abf0a955e138397754b6ced199c3a6aa' (2023-06-26) → 'github:nix-community/emacs-overlay/f42cc216ad19b81c18657671b8681f1b005804b3' (2023-06-28) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/33223d479ffde3d05ac16c6dff04ae43cc27e577' (2023-06-23) → 'github:NixOS/nixpkgs/9790f3242da2152d5aa1976e3e4b8b414f4dd206' (2023-06-27) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/37dd7bb15791c86d55c5121740a1887ab55ee836' (2023-06-26) • Updated input 'home-manager': 'github:nix-community/home-manager/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179' (2023-06-24) → 'github:nix-community/home-manager/47c2adc6b31e9cff335010f570814e44418e2b3e' (2023-06-28) • Updated input 'naersk': 'github:nix-community/naersk/8507af04eb40c5520bd35d9ce6f9d2342cea5ad1' (2023-06-12) → 'github:nix-community/naersk/df10963b956962913b693a638746a95d6c506404' (2023-06-27) • Updated input 'nil': 'github:oxalica/nil/e727e5556564966fb3f023f16a165067ced4ad8d' (2023-06-24) → 'github:oxalica/nil/f6bd5fea84bb5b0b3685b5dd9c21c83fe6ab9b64' (2023-06-26) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f' (2023-06-23) → 'github:nixos/nixpkgs/6b3d1b1cf13f407fef5e634b224d575eb7211975' (2023-06-26) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/7807e1851d95828ed98491930d2d9e7ddbe65da4' (2023-06-20) → 'github:cachix/pre-commit-hooks.nix/1fa438eee82f35bdd4bc30a9aacd7648d757b388' (2023-06-26) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b91d162355e88de89b379f3d6a459ade92704474' (2023-06-26) → 'github:oxalica/rust-overlay/fc57a011f1c20d2b24f75a79ab669430a221b220' (2023-06-28) |
||
---|---|---|
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 |