No description
Erwin Boskma
e4bf26264a
• Updated input 'disko': 'github:nix-community/disko/5b19fb2e74df312751cecbf0f668217eb59d9170' (2023-07-25) → 'github:nix-community/disko/4015740375676402a2ee6adebc3c30ea625b9a94' (2023-07-30) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/4aeae735d19b2012108c41cbf9ff8dfc7895b97f' (2023-07-27) → 'github:nix-community/emacs-overlay/7951ca5a9227877296c49a7ab0ce8dd430c12be5' (2023-07-31) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/6dc93f0daec55ee2f441da385aaf143863e3d671' (2023-07-25) → 'github:NixOS/nixpkgs/d57e8c535d4cbb07f441c30988ce52eec69db7a8' (2023-07-29) • Updated input 'eww': 'github:elkowar/eww/25e50eda46379bccd8a7887c18ee35833e0460e8' (2023-06-10) → 'github:elkowar/eww/dc3129aee2806823bdad87785f7ef80651d5245c' (2023-07-29) • Updated input 'home-manager': 'github:nix-community/home-manager/ba2c0737cc848db03470828fdb5e86df75ed42a8' (2023-07-25) → 'github:nix-community/home-manager/729ab77f9e998e0989fa30140ecc91e738bc0cb1' (2023-07-31) • Updated input 'microvm': 'github:astro/microvm.nix/062fd71f2a8f25c5d80864eb99bdff98e1684efb' (2023-07-24) → 'github:astro/microvm.nix/3183d2a0c00e25772ed3926a24908e3445c69bbc' (2023-07-29) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ba9650b14e83b365fb9e731f7d7c803f22d2aecf' (2023-07-24) → 'github:NixOS/nixos-hardware/96e5a0a0e8568c998135ea05575a9ed2c87f5492' (2023-07-30) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ef99fa5c5ed624460217c31ac4271cfb5cb2502c' (2023-07-25) → 'github:nixos/nixpkgs/e6ab46982debeab9831236869539a507f670a129' (2023-07-29) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/eb433bff05b285258be76513add6f6c57b441775' (2023-07-18) → 'github:cachix/pre-commit-hooks.nix/fcbf4705d98398d084e6cb1c826a0b90a91d22d7' (2023-07-30) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/f335a0213504c7e6481c359dc1009be9cf34432c' (2023-07-27) → 'github:oxalica/rust-overlay/05d480a7aef1aae1bfb67a39134dcf48c5322528' (2023-07-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 |