No description
Erwin Boskma
649f8b570f
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/51994df8ba24d5db5459ccf17b6494643301ad28?narHash=sha256-u9h03JQUuQJ607xmti9F9Eh6E96kKUAGP%2BaXWgwm70o%3D' (2024-09-20) → 'github:nix-community/disko/c61e50b63ad50dda5797b1593ad7771be496efbb?narHash=sha256-Ef7UgoTdOB4PGQKSkHGu6SOxnTiArPHGcRf8qGFC39o%3D' (2024-09-24) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/2c5171a36fcd616753b204c34ef38bf7729825e2?narHash=sha256-UO0TQbj8UFI4tioDTjmui0UqTL8CZkwizolvxqJLGu0%3D' (2024-09-22) → 'github:nix-community/emacs-overlay/b3512b3df5396e17d9e89cadcc3f57db0ea1fecc?narHash=sha256-uaugOQen4xK3vxect3xZyq3CsNOHcV5nMHS4yteIHFA%3D' (2024-09-24) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/944b2aea7f0a2d7c79f72468106bc5510cbf5101?narHash=sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM%3D' (2024-09-20) → 'github:NixOS/nixpkgs/23cbb250f3bf4f516a2d0bf03c51a30900848075?narHash=sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0%2BesxqizGc%3D' (2024-09-22) • Updated input 'home-manager': 'github:nix-community/home-manager/04213d1ce4221f5d9b40bcee30706ce9a91d148d?narHash=sha256-NJPGK030Y3qETpWBhj9oobDQRbXdXOPxtu%2BYgGvZ84o%3D' (2024-09-22) → 'github:nix-community/home-manager/21c021862fa696c8199934e2153214ab57150cb6?narHash=sha256-EYLvFRoTPWtD%2B3uDg2wwQvlz88OrIr3zld%2BjFE5gDcY%3D' (2024-09-23) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/b493dfd4a8cf9552932179e56ff3b5819a9b8381?narHash=sha256-xyNtG5C%2BxvfsnOVEamFe9zCCnuNwk93K/TlFC/4DmCI%3D' (2024-09-21) → 'github:NixOS/nixos-hardware/d0cb432a9d28218df11cbd77d984a2a46caeb5ac?narHash=sha256-19FNN5QT9Z11ZUMfftRplyNN%2B2PgcHKb3oq8KMW/hDA%3D' (2024-09-22) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e?narHash=sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK%2BWk%3D' (2024-09-19) → 'github:nixos/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6?narHash=sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c%3D' (2024-09-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/36d73192555e569d27579f6c486fea3ab768823c?narHash=sha256-FlL/bNESOtDQoczRhmPfReNAmLqVg%2BdAX4HectPOOf0%3D' (2024-09-22) → 'github:oxalica/rust-overlay/2e19799819104b46019d339e78d21c14372d3666?narHash=sha256-uMZMjoCS2nf40TAE1686SJl3OXWfdfM%2BBDEfRdr%2BuLc%3D' (2024-09-24) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/ee41a466c2255a3abe6bc50fc6be927cdee57a9f?narHash=sha256-VUH5O5AcOSxb0uL/m34dDkxFKP6WLQ6y4I1B4%2BN3L2w%3D' (2024-09-19) → 'github:numtide/treefmt-nix/35dfece10c642eb52928a48bee7ac06a59f93e9a?narHash=sha256-gplorAc0ISAUPemUNOnRUs7jr3WiLiHZb3DJh%2B%2BIkZs%3D' (2024-09-23) |
||
---|---|---|
.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 |