No description
Erwin Boskma
8d7016fd3d
Flake lock file updates: • Updated input 'anyrun': 'github:Kirottu/anyrun/76af3eb198f376303194c31a83f2399a043acf1b' (2023-08-19) → 'github:Kirottu/anyrun/f9073a6184f61a07bb584ecc47fbb8eb997e9216' (2023-10-10) • Updated input 'anyrun/flake-parts': 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) → 'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03) • Updated input 'disko': 'github:nix-community/disko/cde886a1c97ef2399b4f91409db045785020291f' (2023-10-05) → 'github:nix-community/disko/32ce057c183506cecb0b84950e4eaf39f37e8c75' (2023-10-09) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c7ac54dd8409046d50d17c11d4fa29a782b37804' (2023-10-08) → 'github:nix-community/emacs-overlay/8330eb06dc9f115afa70cf9c514505571f100120' (2023-10-11) • Updated input 'home-manager': 'github:nix-community/home-manager/3c1d8758ac3f55ab96dcaf4d271c39da4b6e836d' (2023-10-08) → 'github:nix-community/home-manager/6bba64781e4b7c1f91a733583defbd3e46b49408' (2023-10-10) • Updated input 'microvm': 'github:astro/microvm.nix/1119c4d7b1ed1e776f30fb13003b9f18b88a54f4' (2023-10-08) → 'github:astro/microvm.nix/2c28afc481d47c551ab71d96130d938cdde59933' (2023-10-10) • Updated input 'nil': 'github:oxalica/nil/510bc6e9b41d39c81b9c815065cb5b7e23a2428c' (2023-09-23) → 'github:oxalica/nil/ee215a18abf1798dac632f76cad3dea6a8d4418f' (2023-10-09) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/bb2db418b616fea536b1be7f6ee72fb45c11afe0' (2023-10-06) → 'github:NixOS/nixos-hardware/c2bbfcfc3d12351919f8df7c7d6528f41751d0a3' (2023-10-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/87828a0e03d1418e848d3dd3f3014a632e4a4f64' (2023-10-06) → 'github:nixos/nixpkgs/f99e5f03cc0aa231ab5950a15ed02afec45ed51a' (2023-10-09) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/66c352d33e0907239e4a69416334f64af2c685cc' (2023-10-05) → 'github:cachix/pre-commit-hooks.nix/42e1b6095ef80a51f79595d9951eb38e91c4e6ca' (2023-10-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/6528a18a62d817200099c520b6eea7833ade9a9a' (2023-10-08) → 'github:oxalica/rust-overlay/c6d2f0bbd56fc833a7c1973f422ca92a507d0320' (2023-10-11) • Updated input 'sops': 'github:Mic92/sops-nix/d7380c38d407eaf06d111832f4368ba3486b800e' (2023-10-08) → 'github:Mic92/sops-nix/6b32358c22d2718a5407d39a8236c7bd9608f447' (2023-10-09) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.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 eza 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 |