No description
Erwin Boskma
dde75fe47a
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/62f3807dcb4844f74b59c7bcfb81c9a914da7353?narHash=sha256-Q/zmd7YREW3D4pMxGV7iulibm%2BkqQOuoB8TZiLaB0x4%3D' (2024-07-17) → 'github:atuinsh/atuin/95cef714902bbcbdc3ef016457e7a77d38293ea8?narHash=sha256-X8bsyPCTIWZsxzXTOHbfOkQGhQlPyLQBvdOjJALu4s0%3D' (2024-07-22) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/65fb83360b883ecf3c2ef6fc616e13df33087077?narHash=sha256-KyWkSGj79yb60GAM7W2O6X8G/IqTCxLTwOOFeh78kjo%3D' (2024-07-22) → 'github:nix-community/emacs-overlay/b3c3f03e594177220148b3e2f9aef9228cc04321?narHash=sha256-r4O1YRu23CudbakeyrH0R0skMabU9hbqklSR0a0XvWc%3D' (2024-07-23) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/0c53b6b8c2a3e46c68e04417e247bba660689c9d?narHash=sha256-b6PLr0Ty7JPDBtJtjnYzlBf02bbH9alWMAgispMkTwk%3D' (2024-07-19) → 'github:NixOS/nixpkgs/63d37ccd2d178d54e7fb691d7ec76000740ea24a?narHash=sha256-7cCC8%2BTdq1%2B3OPyc3%2BgVo9dzUNkNIQfwSDJ2HSi2u3o%3D' (2024-07-21) • Updated input 'home-manager': 'github:nix-community/home-manager/635563f245309ef5320f80c7ebcb89b2398d2949?narHash=sha256-XpZOkaSJKdOsz1wU6JfO59Rx2fqtcarQ0y6ndIOKNpI%3D' (2024-07-21) → 'github:nix-community/home-manager/7560dc942a6fbd37ebd1310b3dbda513de2d4b82?narHash=sha256-ZDW5%2BrlROxaOuoEfIQM7Gqhoa%2BWALEYdYIiZhyJjAu0%3D' (2024-07-23) • Updated input 'microvm': 'github:astro/microvm.nix/36e261aa2c15a4020663cef87905f436b15305f7?narHash=sha256-GKdodvwT9Suh6V0qJ0N/YWTIADWwto/x3XnFO86iXDs%3D' (2024-07-16) → 'github:astro/microvm.nix/a50d1bf0d4a2f23ce2ffc503d65c9423a8a268e1?narHash=sha256-KuFuVK1Jccku8Vsy8C%2Bjtw1ixUwCdIH0jafjt5zDZao%3D' (2024-07-22) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/1d9c2c9b3e71b9ee663d11c5d298727dace8d374?narHash=sha256-8MUgifkJ7lkZs3u99UDZMB4kbOxvMEXQZ31FO3SopZ0%3D' (2024-07-19) → 'github:nixos/nixpkgs/68c9ed8bbed9dfce253cc91560bf9043297ef2fe?narHash=sha256-Tybxt65eyOARf285hMHIJ2uul8SULjFZbT9ZaEeUnP8%3D' (2024-07-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/424a759557ed4c01cf9dbbf79a714150d64a90ad?narHash=sha256-1yGOh8w/yhWAZ2NJR9N/shQ1tx2n9fmGe0XrDE00i9U%3D' (2024-07-22) → 'github:oxalica/rust-overlay/4674ff2c2e5423a0cebe16e61aa874c359306af4?narHash=sha256-nM4szL90VeZHZEC5rFfaiiPNTVOmsihdtk2QSP1l37I%3D' (2024-07-23) • Updated input 'sops': 'github:Mic92/sops-nix/909e8cfb60d83321d85c8d17209d733658a21c95?narHash=sha256-AsvPw7T0tBLb53xZGcUC3YPqlIpdxoSx56u8vPCr6gU%3D' (2024-07-21) → 'github:Mic92/sops-nix/aff2f88277dabe695de4773682842c34a0b7fd54?narHash=sha256-9jsjsRKtJRqNSTXKj9zuDFRf2PGix30nMx9VKyPgD2U%3D' (2024-07-22) |
||
---|---|---|
.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 |