No description
Erwin Boskma
adbfe2fd6c
Flake lock file updates: • Updated input 'ghostty': 'github:ghostty-org/ghostty/0065aae6b6b97f47afbd5a9cb71852cebbe2ea69?narHash=sha256-RROzoSujiA6efbs9damV9ZzmOtYYpwnoVdqjeVuhWQU%3D' (2025-01-07) → 'github:ghostty-org/ghostty/29c2f095a6bb73f2579bc1adfa5833dbe3e3ef0a?narHash=sha256-hWDDKYpLDS8/146mZh726UEO8HottjwqNkxcvJ04lHA%3D' (2025-01-08) • Updated input 'home-manager': 'github:nix-community/home-manager/20665c6efa83d71020c8730f26706258ba5c6b2a?narHash=sha256-CoBPRgkUex9Iz6qGSzi/BFVUQjndB0PmME2B6eEyeCs%3D' (2025-01-06) → 'github:nix-community/home-manager/5c4302313d9207f7ec0886d68f8ff4a3c71209a1?narHash=sha256-kPDXF6cIPsVqSK08XF5EC6KM7BdMnM9vtJDzsnf%2BlLU%3D' (2025-01-07) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ca30f8501ab452ca687a7fdcb2d43e1fb1732317?narHash=sha256-uTdscVaKjnRnBIMuu/oWwdiGhYd/JOQ4YZGHeCoroqs%3D' (2025-01-07) → 'github:NixOS/nixos-hardware/4f339f6be2b61662f957c2ee9eda0fa597d8a6d6?narHash=sha256-BG1FfTexFwNty5VhYjaQLMR6CMPfI3QRcaZrFQYu2EM%3D' (2025-01-07) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/bbe7e4e7a70d235db4bbdcabbf8a2f6671881dd7?narHash=sha256-EMueGrzBpryM8mgOyoyJ7DdNRRk09ug1ggcLLp0WrCQ%3D' (2025-01-07) → 'github:oxalica/rust-overlay/a0b81d4fa349d9af1765b0f0b4a899c13776f706?narHash=sha256-IKrk7RL%2BQ/2NC6%2BQl6dwwCNZI6T6JH2grTdJaVWHF0A%3D' (2025-01-08) |
||
---|---|---|
.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 |