No description
Erwin Boskma
c03ef94c82
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/98a6ab9b52f8b06db9c3116b1761bbeaf9484408' (2023-09-22) → 'github:nix-community/disko/19b62324663b6b9859caf7f335d232cf4f1f6a32' (2023-09-28) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/5a8b611e684b5299b6c782b5d022d86610accd7d' (2023-09-24) → 'github:nix-community/emacs-overlay/f32c6288cc50298c04a86364e5947c28981c2f7d' (2023-09-29) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/e9b4b56e5a20ac322c0c01ccab7ec697ab076ea0' (2023-09-22) → 'github:NixOS/nixpkgs/5cfafa12d57374f48bcc36fda3274ada276cf69e' (2023-09-27) • Updated input 'ha-now-playing': 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=e76736b4c23769824e38e9ccf9e8677439dd9138' (2023-07-03) → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=2e72629aec89c5c3ac2cb07e5961c1c20bb91c0b' (2023-09-28) • Updated input 'ha-now-playing/crane': 'github:ipetkov/crane/4d350bb94fdf8ec9d2e22d68bb13e136d73aa9d8' (2023-06-29) → 'github:ipetkov/crane/3de322e06fc88ada5e3589dc8a375b73e749f512' (2023-09-23) • Updated input 'home-manager': 'github:nix-community/home-manager/a88df2fb101778bfd98a17556b3a2618c6c66091' (2023-09-24) → 'github:nix-community/home-manager/9d4cdf8cc4da54beb5d2e927af7a259bb4a00645' (2023-09-28) • Updated input 'microvm': 'github:astro/microvm.nix/8b1fda371d21f92609e8bb0d418bd6b1da84c155' (2023-09-22) → 'github:astro/microvm.nix/67bf176ff48141292a66d8bce541463ee49d0fb5' (2023-09-27) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/61283b30d11f27d5b76439d43f20d0c0c8ff5296' (2023-09-24) → 'github:NixOS/nixos-hardware/adcfd6aa860d1d129055039696bc457af7d50d0e' (2023-09-28) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e35dcc04a3853da485a396bdd332217d0ac9054f' (2023-09-22) → 'github:nixos/nixpkgs/8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2' (2023-09-27) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/4f883a76282bc28eb952570afc3d8a1bf6f481d7' (2023-09-10) → 'github:cachix/pre-commit-hooks.nix/cb770e93516a1609652fa8e945a0f310e98f10c0' (2023-09-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/164b96162f83ae3be6a9f5577053e0d53e5f4e6a' (2023-09-24) → 'github:oxalica/rust-overlay/fb948d8eaf5d7c720dec92eb9c75193963fa0c52' (2023-09-29) |
||
---|---|---|
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 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 |