No description
Erwin Boskma
613feb1efb
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/49f8aa791f81ff2402039b3efe0c35b9386c4bcf?narHash=sha256-TdU0a/x8048rbbJmkKWzSY1CtsbbGKNkIJcMdr8Zf4Q%3D' (2025-01-06) → 'github:nix-community/disko/4d5d07d37ff773338e40a92088f45f4f88e509c8?narHash=sha256-9Sy17XguKdEU9M5peTrkWSlI/O5IAqjHzdzxbXnc30g%3D' (2025-01-09) • Updated input 'ghostty': 'github:ghostty-org/ghostty/2d7706ec4f7042b9072d3b8ac8ea496dee209bc8?narHash=sha256-SiG2B2KfU4BIOggrJJa9nKoagXtLXWWo9vXJ88a%2Bls8%3D' (2025-01-09) → 'github:ghostty-org/ghostty/6ef757a8f85db7a124d370378850339a899c9e65?narHash=sha256-TsDbQIHOi84hTjb0SSLSyX27P1MA1DVLagX8uik%2BWGk%3D' (2025-01-09) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/4f339f6be2b61662f957c2ee9eda0fa597d8a6d6?narHash=sha256-BG1FfTexFwNty5VhYjaQLMR6CMPfI3QRcaZrFQYu2EM%3D' (2025-01-07) → 'github:NixOS/nixos-hardware/8870dcaff63dfc6647fb10648b827e9d40b0a337?narHash=sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb%2BmxySIP93o%3D' (2025-01-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1033caad3e26a56050de55ba0384df5ff0fa5ebd?narHash=sha256-e2SP1zV9CISHlYZwEhwT53N9CW7yPh0tKTR0vuQqiWc%3D' (2025-01-09) → 'github:oxalica/rust-overlay/de30cc5963da22e9742bbbbb9a3344570ed237b9?narHash=sha256-%2Bqyv3QqdZCdZ3cSO/cbpEY6tntyYjfe1bB12mdpNFaY%3D' (2025-01-10) |
||
---|---|---|
.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 |