No description
Erwin Boskma
f9894fc573
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/639d1520df9417ca2761536c3072688569e83c80?narHash=sha256-z76Q/OXLxO/RxMII3fIt/TG665DANiE2lVvnolK2lXk%3D' (2024-11-18) → 'github:nix-community/disko/a0c384e0a3b8bcaed30a6bcf3783f8a7c8b35be4?narHash=sha256-iYh6h8yueU8IyOfNclbiBG2%2BfBFcjjUfXm90ZBzk0c0%3D' (2024-11-20) • Updated input 'eww': 'github:elkowar/eww/50ec181fc7ff2a68d6330e8897de2c5179575935?narHash=sha256-GxbKoS2TQNMeD4dbZn1IU%2B/BOiYGeVALHVAbZnFc3UU%3D' (2024-10-12) → 'github:elkowar/eww/86dc4a4636dad3999db29975d8a720831a076695?narHash=sha256-1bdyeeReta5ethFghMJIE5ptQ4MBLXuBdCh6mhZ8mZo%3D' (2024-11-20) • Updated input 'microvm': 'github:astro/microvm.nix/b1fd9701f057f288c77de2fdd217b51112aab0a4?narHash=sha256-owQmdq2KJf/ygRrzqTDDE3iY1Uh2Y3vvbRyDcFCwekQ%3D' (2024-11-19) → 'github:astro/microvm.nix/19650774c23df84d0b8f315d2527274563497cad?narHash=sha256-lF54irx92m8ddNDQDtOUjKsZAnsGyPL3QTO7byjlxNg%3D' (2024-11-20) • Updated input 'nil': 'github:oxalica/nil/c8e8ce72442a164d89d3fdeaae0bcc405f8c015a?narHash=sha256-mIuOP4I51eFLquRaxMKx67pHmhatZrcVPjfHL98v/M8%3D' (2024-09-19) → 'github:oxalica/nil/2e24c9834e3bb5aa2a3701d3713b43a6fb106362?narHash=sha256-DCIVdlb81Fct2uwzbtnawLBC/U03U2hqx8trqTJB7WA%3D' (2024-11-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5e4fbfb6b3de1aa2872b76d49fafc942626e2add?narHash=sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg%3D' (2024-11-15) → 'github:nixos/nixpkgs/23e89b7da85c3640bbc2173fe04f4bd114342367?narHash=sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w%3D' (2024-11-19) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/71287228d96e9568e1e70c6bbfa3f992d145947b?narHash=sha256-JECaBgC0pQ91Hq3W4unH6K9to8s2Zl2sPNu7bLOv4ek%3D' (2024-11-19) → 'github:oxalica/rust-overlay/8509a51241c407d583b1963d5079585a992506e8?narHash=sha256-moKx8AVJrViCSdA0e0nSsG8b1dAsObI4sRAtbqbvBY8%3D' (2024-11-20) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/5f5c2787576f3e39bbc2ebdbf8521b3177c5c19c?narHash=sha256-grEEN4LjL4DTDZUyZjVcj9dXRykH/SKnpOIADN0q5w8%3D' (2024-11-19) → 'github:numtide/treefmt-nix/62003fdad7a5ab7b6af3ea9bd7290e4c220277d0?narHash=sha256-XWHuPWcP59QnHEewdZJXBX1TA2lAP78Vz4daG6tfIr4%3D' (2024-11-20) |
||
---|---|---|
.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 |