No description
Erwin Boskma
a99ea1f4c9
Flake lock file updates: • Updated input 'colmena': 'github:zhaofengli/colmena/b0a62f234fae02a006123e661ff70e62af16106b?narHash=sha256-gyUVsPAWY9AgVKjrNPoowrIr5BvK4gI0UkDXvv8iSxA%3D' (2024-10-07) → 'github:zhaofengli/colmena/03f1a18a6fba9ad9c4edb1cc7cf394390c304198?narHash=sha256-N8gaV5bngMQPGyuo/RVdEsHTXvOeqjUhhxXpGea12DE%3D' (2024-11-08) • Added input 'colmena/nix-github-actions': 'github:nix-community/nix-github-actions/e04df33f62cdcf93d73e9a04142464753a16db67?narHash=sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9%2BBV1h%2BMpA%3D' (2024-10-24) • Added input 'colmena/nix-github-actions/nixpkgs': follows 'colmena/nixpkgs' • Updated input 'colmena/stable': 'github:NixOS/nixpkgs/797f7dc49e0bc7fab4b57c021cdf68f595e47841?narHash=sha256-Qb9MhKBUTCfWg/wqqaxt89Xfi6qTD3XpTzQ9eXi3JmE%3D' (2024-08-22) → 'github:NixOS/nixpkgs/dba414932936fde69f0606b4f1d87c5bc0003ede?narHash=sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE%3D' (2024-11-06) • Updated input 'disko': 'github:nix-community/disko/856a2902156ba304efebd4c1096dbf7465569454?narHash=sha256-sdY29RWz0S7VbaoTwSy6RummdHKf0wUTaBlqPxrtvmQ%3D' (2024-11-04) → 'github:nix-community/disko/a8bdb16b473f457609eb76d0dabb2fcb4e1f64b8?narHash=sha256-INZxHLoqy7uTLuMhEEnYkyMgouXvJtBupup2pOpcM%2Bs%3D' (2024-11-08) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/83b6f9732eaf48f94d8ad6baa5cc2bf82bc3d3ff?narHash=sha256-PvStjAOzvb3Ta9lUkPtbXKE3HJ%2B4/zsWvHJFO/mzD2o%3D' (2024-11-07) → 'github:nix-community/emacs-overlay/2313c4189eaef014d01fb260313f58554ddb5e31?narHash=sha256-/E0UgOD6LnDfJPqCwqa1WVEgwDQ6NXXH%2BWq89cMUris%3D' (2024-11-08) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/7fba269fe89ffad47206e0afba233d337c04cf08?narHash=sha256-AxGJ3BRc44o3RBcfXxZqjVYftVtJ2sl%2B/WEjiLUmXRY%3D' (2024-11-07) → 'github:oxalica/rust-overlay/d52f2a4c103a0acf09ded857b9e2519ae2360e59?narHash=sha256-dQSyYPmrQiPr%2BPGEd%2BK8038rubFGz7G/dNXVeaGWE0w%3D' (2024-11-08) • Updated input 'sops': 'github:Mic92/sops-nix/c5ae1e214ff935f2d3593187a131becb289ea639?narHash=sha256-pvXMOJIqRW0trsW%2BFzRMl6d5PbsM4rWfD5lcKCOrrwI%3D' (2024-11-06) → 'github:Mic92/sops-nix/60e1bce1999f126e3b16ef45f89f72f0c3f8d16f?narHash=sha256-iyp51lPWEQz4c5VH9bVbAuBcFP4crETU2QJYh5V0NYA%3D' (2024-11-08) |
||
---|---|---|
.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 |