No description
Erwin Boskma
5a622be5c1
Flake lock file updates: • Updated input 'comin': 'github:nlewo/comin/9afca855518f79b5bff3d2a9663b2e6f81dd361a?narHash=sha256-n8yVzBixxaj0Qn6SV655t6QUtKSOJ%2BsR4AEoq0Vqb/0%3D' (2024-11-13) → 'github:nlewo/comin/773f6141a95f0538f3f8e687da037659bf38bd40?narHash=sha256-Jo0fBfyJ/JLDcWQaLlZjra5VZDUB6m1Wes/dFFGbMBY%3D' (2025-01-22) • Updated input 'ghostty': 'github:ghostty-org/ghostty/ddf7173ae92b4992c4506b6df4681c0687cc29c3?narHash=sha256-A5w6%2B0Zc7b93nbCF6ayHbXIEO0%2Bh%2B8BR4byYGgTy%2BtY%3D' (2025-01-22) → 'github:ghostty-org/ghostty/fd8cacaa674c93fb86751e8030af2b202133939e?narHash=sha256-Rs8KNdInnmqs0YNWvvauYlf2XcnA4EIdmRggvQGjmUQ%3D' (2025-01-24) • Updated input 'home-manager': 'github:nix-community/home-manager/cefb1889b96ddd1dac3dd4734e894f4cadab7802?narHash=sha256-qa/D3NC1JoApnUuLrq1gseBmIxeg6icm/ojPgggMDVQ%3D' (2025-01-22) → 'github:nix-community/home-manager/7b9ece1bf3c8780cde9b975b28c2d9ccd7e9cdb9?narHash=sha256-v9WQ3c4ctwPMfdBZMZxpdM9xXev4uChce4BxOpvsu0E%3D' (2025-01-23) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/61c79181e77ef774ab0468b28a24bc2647d498d6?narHash=sha256-utplyRM6pqnN940gfaLFBb9oUCSzkan86IvmkhsVlN8%3D' (2025-01-20) → 'github:NixOS/nixos-hardware/9368027715d8dde4b84c79c374948b5306fdd2db?narHash=sha256-qM/y6Dtpu9Wmf5HqeZajQdn%2BcS0aljdYQQQnrvx%2BLJE%3D' (2025-01-23) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/06b8ed0eee289fe94c66f1202ced9a6a2c59a14c?narHash=sha256-dgF6htdmfNnZzVInifks6npnCAyVsIHWSpWNs10RSW0%3D' (2025-01-22) → 'github:oxalica/rust-overlay/eb64cbcc8eee0fa87ebded92805280d2ec97415a?narHash=sha256-p%2BNVABRpGi%2BpT%2Bxxf9HcLcFVxG6L%2BvEEy%2BNwzB9T0f8%3D' (2025-01-24) |
||
---|---|---|
.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 |