No description
Erwin Boskma
e99de3618d
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/a6717b1afee7ae955c61eefdf0ce8f864ef78115?narHash=sha256-3wKGpHy9Kyh98DrziqC/s//60Q0pE17NgbY93L0uWng%3D' (2024-03-26) → 'github:nix-community/disko/502241afa3de2a24865ddcbe4c122f4546e32092?narHash=sha256-vBB5HoQVnA6c/UrDOhLXKAahEwSRccw2YXYHxD7qoi4%3D' (2024-03-28) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9f6f38ce57d29b78cc6db45cf87813ae631641ec?narHash=sha256-Z7JxlKxbhGWLOvypllSMGhDMWd/A2Hv8zRKJY3a9TTY%3D' (2024-03-27) → 'github:nix-community/emacs-overlay/593fd7712944cec2a04b0f5d54b22e35fe03290b?narHash=sha256-unfcrYWtZn%2BxIAcwfXNh2s1/ZpG9HObEHJG6I7yBliI%3D' (2024-03-28) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/56528ee42526794d413d6f244648aaee4a7b56c0?narHash=sha256-l0zlN/3CiodvWDtfBOVxeTwYSRz93muVbXWSpaMjXxM%3D' (2024-03-22) → 'github:NixOS/nixpkgs/44733514b72e732bd49f5511bd0203dea9b9a434?narHash=sha256-akSgjDZL6pVHEfSE6sz1DNSXuYX6hq%2BP/1Z5IoYWs7E%3D' (2024-03-26) • Updated input 'home-manager': 'github:nix-community/home-manager/1c2c5e4cabba4c43504ef0f8cc3f3dfa284e2dbb?narHash=sha256-WJOahf%2B6115%2BGMl3wUfURu8fszuNeJLv9qAWFQl3Vmo%3D' (2024-03-22) → 'github:nix-community/home-manager/3142bdcc470e1e291e1fbe942fd69e06bd00c5df?narHash=sha256-vbI/gxRTq/gHW1Q8z6D/7JG/qGNl3JTimUDX%2BMwnC3A%3D' (2024-03-28) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/57e6b3a9e4ebec5aa121188301f04a6b8c354c9b?narHash=sha256-5PiWGn10DQjMZee5NXzeA6ccsv60iLu%2BXtw%2BmfvkUAs%3D' (2024-03-25) → 'github:nixos/nixpkgs/2726f127c15a4cc9810843b96cad73c7eb39e443?narHash=sha256-UKcYiHWHQynzj6CN/vTcix4yd1eCu1uFdsuarupdCQQ%3D' (2024-03-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/56f48d6e7559b807763ea03191bfaf95549ce610?narHash=sha256-yK1zue1c8EdpZvEyQWrjawG9Ykzl7eB2xJ/V%2B2vU5Jo%3D' (2024-03-27) → 'github:oxalica/rust-overlay/aa858717377db2ed8ffd2d44147d907baee656e5?narHash=sha256-oD4OJ3TRmVrbAuKZWxElRCyCagNCDuhfw2exBmNOy48%3D' (2024-03-28) |
||
---|---|---|
.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 | ||
krops.nix | ||
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 |