No description
Erwin Boskma
b04ec25a57
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/da8f49246ce226b70feaf132d9b73a4cb7595f10?narHash=sha256-YGKkZJGZiopMia83mf04zbK2p2OHdtbyJq05jkmGGis%3D' (2024-10-02) → 'github:nix-community/disko/568727a884ae7cd9f266bd19aea655def8cafd78?narHash=sha256-4Pw3fVhN6xey5%2B2gUBm9nQJAjBqivffr%2Ba5ZsXYjzJ8%3D' (2024-10-02) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7bdcd77e2b8fd8e10d8d8bfae5ba7302dbd69d3e?narHash=sha256-sS83Q/2pl6U%2BLnRKVH95ntBRIpzr2x1llLPZlfX0GXg%3D' (2024-10-02) → 'github:nix-community/emacs-overlay/a483757de48eba86f4ab373fd522341555aecfd7?narHash=sha256-9cpTSjtShCU5MJwEm3cbL2pALTMwjCDTM3zeQ1wrkRI%3D' (2024-10-02) • Updated input 'microvm': 'github:astro/microvm.nix/04f643d06b6f3f79cb289a8c94f051b012e1750e?narHash=sha256-IhKB3RPTrblfiq6DW9MiGrS0ULcn/0qWtlefL%2BGfg0o%3D' (2024-09-27) → 'github:astro/microvm.nix/e832ffc16b09b1b5c7c1224532d03ed3ce68afd0?narHash=sha256-78hOotCZ/G8l4nyWPdMWSOojdJ5NwHTR0usBVVBNTtU%3D' (2024-10-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/06cf0e1da4208d3766d898b7fdab6513366d45b9?narHash=sha256-S5kVU7U82LfpEukbn/ihcyNt2%2BEvG7Z5unsKW9H/yFA%3D' (2024-09-29) → 'github:nixos/nixpkgs/27e30d177e57d912d614c88c622dcfdb2e6e6515?narHash=sha256-HP89HZOT0ReIbI7IJZJQoJgxvB2Tn28V6XS3MNKnfLs%3D' (2024-10-01) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/02321540b0c8000b36889b1b974d1fec585b25a4?narHash=sha256-JE0zciM5IGWvK8J/pE2VldNBf7oyMH5WrU8tZArefbg%3D' (2024-10-02) → 'github:oxalica/rust-overlay/5e3eee4bc42a2504653bedfe95bceda9a1e85ae7?narHash=sha256-pJoN5Qd83coaoEJmpkxw%2Bcuh89IJORvLm8qyw3GMLIQ%3D' (2024-10-03) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
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 |