No description
Erwin Boskma
1ca86d7b32
Flake lock file updates: • Updated input 'anyrun': 'github:Kirottu/anyrun/6e0385f6945d701545edc5bccfc5f544e1e12663?narHash=sha256-PhJdr8b4nZVHts5KMEsf7vCDXVpFIFCa7VlCt%2BoYpL4%3D' (2024-10-13) → 'github:Kirottu/anyrun/b3b4f2253d43af3311b3d3fc86973fc3e9559c33?narHash=sha256-i3FxeHjsHw4AePx3AWVVywy92EEobx/ZER4ignWxNrE%3D' (2024-11-01) • Updated input 'disko': 'github:nix-community/disko/3979285062d6781525cded0f6c4ff92e71376b55?narHash=sha256-o5m5WzvY6cGIDupuOvjgNSS8AN6yP2iI9MtUC6q/uos%3D' (2024-10-29) → 'github:nix-community/disko/380847d94ff0fedee8b50ee4baddb162c06678df?narHash=sha256-Mhqz3p/HEiI/zxBJWO57LYQf6gGlJB0tci6fiVXLjd8%3D' (2024-11-03) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/88aa67a24ebef4001b58945bdc2852f427f1abc9?narHash=sha256-r7ecq%2BMCAU4kQCze6l9ZAooaGkag1ml7mI/aXGx7eH8%3D' (2024-10-30) → 'github:nix-community/emacs-overlay/3cbb531951b8abd4413ebc04a4e06d214de3cf04?narHash=sha256-JsaxXQEI76Lq6c5KVAzcAvNox0qEzJfC5%2BbYZqtySCk%3D' (2024-11-04) • Removed input 'emacs-overlay/flake-utils' • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/64b80bfb316b57cdb8919a9110ef63393d74382a?narHash=sha256-9z8oOgFZiaguj%2Bbbi3k4QhAD6JabWrnv7fscC/mt0KE%3D' (2024-10-28) → 'github:NixOS/nixpkgs/080166c15633801df010977d9d7474b4a6c549d7?narHash=sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8%3D' (2024-10-30) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1?narHash=sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0%3D' (2024-10-01) → 'github:hercules-ci/flake-parts/506278e768c2a08bec68eb62932193e341f55c90?narHash=sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS%2Bb4tfNFCwE%3D' (2024-11-01) • Updated input 'flake-parts/nixpkgs-lib': ' |
||
---|---|---|
.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 |