No description
Erwin Boskma
95900096cd
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c626c28c864722e20b7e9b507ccb1ca48d4328af?narHash=sha256-XvZhPCECx8MVK3wgJ/EXAIclEkzyA4WIALOIeommFDE%3D' (2024-11-06) → 'github:nix-community/emacs-overlay/83b6f9732eaf48f94d8ad6baa5cc2bf82bc3d3ff?narHash=sha256-PvStjAOzvb3Ta9lUkPtbXKE3HJ%2B4/zsWvHJFO/mzD2o%3D' (2024-11-07) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/d063c1dd113c91ab27959ba540c0d9753409edf3?narHash=sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo%3D' (2024-11-04) → 'github:NixOS/nixpkgs/dba414932936fde69f0606b4f1d87c5bc0003ede?narHash=sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE%3D' (2024-11-06) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/12ad8c1bf13ff15ffa6afe82c59b4af0b9226035?narHash=sha256-VK7LkfdcpUi8tqcgMIYY2jejDh4O3MNw9An0FcKveRQ%3D' (2024-11-06) → 'github:NixOS/nixos-hardware/e1cc1f6483393634aee94514186d21a4871e78d7?narHash=sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg%3D' (2024-11-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b8eb3aeb21629cbe14968a5e3b1cbaefb0d1b260?narHash=sha256-u0sfA4B65Q9cRO3xpIkQ4nldB8isfdIb3rWtsnRZ%2BIw%3D' (2024-11-06) → 'github:oxalica/rust-overlay/7fba269fe89ffad47206e0afba233d337c04cf08?narHash=sha256-AxGJ3BRc44o3RBcfXxZqjVYftVtJ2sl%2B/WEjiLUmXRY%3D' (2024-11-07) • Updated input 'sops': 'github:Mic92/sops-nix/f21c31dadf0a486ee5a501779e505036fb1b1bcf?narHash=sha256-AO3xerwwEQ74s8TMeAfaOvHSvPI6FK4J5H%2BACkRZVGk%3D' (2024-11-06) → 'github:Mic92/sops-nix/c5ae1e214ff935f2d3593187a131becb289ea639?narHash=sha256-pvXMOJIqRW0trsW%2BFzRMl6d5PbsM4rWfD5lcKCOrrwI%3D' (2024-11-06) |
||
---|---|---|
.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 |