No description
Erwin Boskma
bdf221e01f
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/d7d57edb72e54891fa67a6f058a46b2bb405663b?narHash=sha256-VftVIg7UXTy1bq%2Btzi1aVYOWl7PQ35IpjW88yMYjjpc%3D' (2024-10-16) → 'github:nix-community/disko/a6a3179ddf396dfc28a078e2f169354d0c137125?narHash=sha256-MuojlSnwAJAwfhgmW8ZtZrwm2Sko4fqubCvReqbUzYw%3D' (2024-10-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/264b4e4a44a67a42bfc161ee48d9139f3abd8ab0?narHash=sha256-/2wBluheB7gOBsZRjJ0mHGb4JHNtdoyFF3OR2xSQ%2Bdc%3D' (2024-10-18) → 'github:nix-community/emacs-overlay/3adba4b7d1db1d4eba3f682a956fcbb5de1bd7a1?narHash=sha256-Jt86dscJ4nsoHFnGRAm4iSgbpD/pifd7Cs4m52CEzwY%3D' (2024-10-19) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/dc2e0028d274394f73653c7c90cc63edbb696be1?narHash=sha256-GKJjtPY%2BSXfLF/yTN7M2cAnQB6RERFKnQhD8UvPSf3M%3D' (2024-10-16) → 'github:NixOS/nixpkgs/4eb33fe664af7b41a4c446f87d20c9a0a6321fa3?narHash=sha256-LDiPhQ3l%2BfBjRATNtnuDZsBS7hqoBtPkKBkhpoBHv3I%3D' (2024-10-17) • Updated input 'home-manager': 'github:nix-community/home-manager/e78cbb20276f09c1802e62d2f77fc93ec32da268?narHash=sha256-QxCAdgQdeIOaCiE0Sr23s9lD0%2BT1b/wuz5pSiGwNrCQ%3D' (2024-10-17) → 'github:nix-community/home-manager/122f70545b29ccb922e655b08acfe05bfb44ec68?narHash=sha256-KVyQq%2Bez/oB30/WbdNgVD8g/bda34z8NiU187QKQb74%3D' (2024-10-19) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/a8dd1b21995964b115b1e3ec639dd6ce24ab9806?narHash=sha256-oazkQ/z7r43YkDLLQdMg8oIB3CwWNb%2B2ZrYOxtLEWTQ%3D' (2024-10-12) → 'github:NixOS/nixos-hardware/38279034170b1e2929b2be33bdaedbf14a57bfeb?narHash=sha256-NU%2BtYe3QWzDNpB8RagpqR3hNQXn4BNuBd7ZGosMHLL8%3D' (2024-10-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c?narHash=sha256-nsNdSldaAyu6PE3YUA%2BYQLqUDJh%2BgRbBooMMekZJwvI%3D' (2024-10-14) → 'github:nixos/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0?narHash=sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c%2BcHUJwA%3D' (2024-10-18) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/9051466c82b9b3a6ba9e06be99621ad25423ec94?narHash=sha256-KDmYxpkFWa0Go0WnOpkgQOypVaQxbwgpEutET5ey1VQ%3D' (2024-10-18) → 'github:oxalica/rust-overlay/b259ef799b5ac014604da71ecd92d4a52603ed2d?narHash=sha256-H7KGGJUU9BcDNnfXiATBGgs6FJKWQdfftNJS%2B/v2aMU%3D' (2024-10-19) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/5307ba60125bb024d7e52d71d582eafd511f3fee?narHash=sha256-zayHqZO9gA1U85c4CPvVSnLV8/cBgc2yVrSKWaKeBUs%3D' (2024-10-16) → 'github:numtide/treefmt-nix/d986489c1c757f6921a48c1439f19bfb9b8ecab5?narHash=sha256-6jWSWxv2crIXmYSEb3LEVsFkCkyVHNllk61X4uhqfCs%3D' (2024-10-18) |
||
---|---|---|
.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 |