No description
Erwin Boskma
3e2d1f8c12
Flake lock file updates: • Updated input 'ghostty': 'github:ghostty-org/ghostty/ddf7173ae92b4992c4506b6df4681c0687cc29c3?narHash=sha256-A5w6%2B0Zc7b93nbCF6ayHbXIEO0%2Bh%2B8BR4byYGgTy%2BtY%3D' (2025-01-22) → 'github:ghostty-org/ghostty/603639ad44e82afbcd8cdb01d7050abf7c538e9b?narHash=sha256-EHGwh2do2JEcYHxaXBq1H7z/S2FkbHEpnNWhvgAmpJ8%3D' (2025-01-28) • Updated input 'home-manager': 'github:nix-community/home-manager/cefb1889b96ddd1dac3dd4734e894f4cadab7802?narHash=sha256-qa/D3NC1JoApnUuLrq1gseBmIxeg6icm/ojPgggMDVQ%3D' (2025-01-22) → 'github:nix-community/home-manager/e1ae908bcc30af792b0bb0a52e53b03d2577255e?narHash=sha256-xiPARGKwocaMtv%2BU/rgi%2Bh2g56CZZEmrcl7ldRaslq8%3D' (2025-01-27) • Updated input 'microvm': 'github:astro/microvm.nix/a18d7ba1bb7fd4841191044ca7a7f895ef2adf3b?narHash=sha256-eW6SfZRaOnOybBzhvEzu3iRL8IhwE0ETxUpnkErlqkE%3D' (2025-01-15) → 'github:astro/microvm.nix/3768f4937f38334898c67e03f40e244a57a74caa?narHash=sha256-7AGmPPBgLHHWgzzFYDJcyhv/NiuCrpgzg8IyA7Q/H9o%3D' (2025-01-27) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/61c79181e77ef774ab0468b28a24bc2647d498d6?narHash=sha256-utplyRM6pqnN940gfaLFBb9oUCSzkan86IvmkhsVlN8%3D' (2025-01-20) → 'github:NixOS/nixos-hardware/dfad538f751a5aa5d4436d9781ab27a6128ec9d4?narHash=sha256-ZEbOJ9iT72iwqXsiEMbEa8wWjyFvRA9Ugx8utmYbpz4%3D' (2025-01-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/06b8ed0eee289fe94c66f1202ced9a6a2c59a14c?narHash=sha256-dgF6htdmfNnZzVInifks6npnCAyVsIHWSpWNs10RSW0%3D' (2025-01-22) → 'github:oxalica/rust-overlay/6a3dc6ce4132bd57359214d986db376f2333c14d?narHash=sha256-GFviGfaezjGLFUlxdv3zyC7rSZvTXqwcG/YsF6MDkOw%3D' (2025-01-29) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/f2cc121df15418d028a59c9737d38e3a90fbaf8f?narHash=sha256-5An1wq5U8sNycOBBg3nsDDgpwBmR9liOpDGlhliA6Xo%3D' (2025-01-21) → 'github:numtide/treefmt-nix/bebf27d00f7d10ba75332a0541ac43676985dea3?narHash=sha256-j6jC12vCFsTGDmY2u1H12lMr62fnclNjuCtAdF1a4Nk%3D' (2025-01-28) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |