No description
Erwin Boskma
2d30d301ae
• Updated input 'disko': 'github:nix-community/disko/d02e565b95bdc68d8d7179a8eae27a1e4b04e507' (2023-06-04) → 'github:nix-community/disko/29d632d7e8fa86f937153ecdfd7d768411001d2d' (2023-06-05) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/70db17480e76d556cc5363c1ba22cd591c83fa76' (2023-06-04) → 'github:nix-community/emacs-overlay/fe83f47d0a8240ec1d81928705f6b02dc722fbbd' (2023-06-07) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/eaf03591711b46d21abc7082a8ebee4681f9dbeb' (2023-06-03) → 'github:NixOS/nixpkgs/70f7275b32f49bc67ae3532b758b80cb6c27f98a' (2023-06-05) • Updated input 'home-manager': 'github:nix-community/home-manager/57ed23cd29e7b72518e19d2917e2b2880a94162c' (2023-06-04) → 'github:nix-community/home-manager/3512a6dafb7836cfceef00dcb29ce6f01c2ce280' (2023-06-07) • Updated input 'microvm': 'github:astro/microvm.nix/3683f43a37568fbc14bdc1c952acb41b0bb09a01' (2023-05-29) → 'github:astro/microvm.nix/c6416c6b9fed22b71f526720cb120b0218c51b62' (2023-06-06) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/dd4982554e18b936790da07c4ea2db7c7600f283' (2023-06-03) → 'github:nixos/nixpkgs/7409480d5c8584a1a83c422530419efe4afb0d19' (2023-06-05) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/ca2fdbf3edda2a38140184da6381d49f8206eaf4' (2023-05-29) → 'github:cachix/pre-commit-hooks.nix/6881eb2ae5d8a3516e34714e7a90d9d95914c4dc' (2023-06-06) • Updated input 'pre-commit-hooks/nixpkgs-stable': 'github:NixOS/nixpkgs/9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8' (2023-03-15) → 'github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373' (2023-06-03) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1ef3c6de6127a1cba94cc5492cdde52e33d06ea4' (2023-06-04) → 'github:oxalica/rust-overlay/1279a72003f5e4b08c8eca1101d8f57452a539f9' (2023-06-07) |
||
---|---|---|
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 |