No description
Erwin Boskma
38f3a278f4
Flake lock file updates: • Updated input 'ghostty': 'github:ghostty-org/ghostty/3b3e75c1dcbe70e7c802337374d90d4bb8d921bf?narHash=sha256-aJL4U/nxGDALNUhHxpKUJ5hMQJsHSzWAEjX1cd2Xx84%3D' (2025-02-03) → 'github:ghostty-org/ghostty/f0d276062b78658fc1f3857e9ea104788f1f4e58?narHash=sha256-q4h4SY1kVkZG4t/59CmJvaKjlx%2BxjojhdU1HqxiQhrQ%3D' (2025-02-03) • Updated input 'home-manager': 'github:nix-community/home-manager/18fa9f323d8adbb0b7b8b98a8488db308210ed93?narHash=sha256-4ATtQqBlgsGqkHTemta0ydY6f7JBRXz4Hf574NHQpkg%3D' (2025-02-01) → 'github:nix-community/home-manager/7abcf59a365430b36f84eaa452a466b11e469e33?narHash=sha256-sMMQb9NydZqQ/MvvtPp%2BNy0W9P0Jk0moU7SrTBlO5Vo%3D' (2025-02-04) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/537286c3c59b40311e5418a180b38034661d2536?narHash=sha256-cgXDFrplNGs7bCVzXhRofjD8oJYqqXGcmUzXjHmip6Y%3D' (2025-02-02) → 'github:NixOS/nixos-hardware/9bdd53f5908453e4d03f395eb1615c3e9a351f70?narHash=sha256-ZYMe4c4OCtIUBn5hx15PEGr0%2BB1cNEpl2dsaLxwY2W0%3D' (2025-02-04) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3a228057f5b619feb3186e986dbe76278d707b6e?narHash=sha256-xvTo0Aw0%2Bveek7hvEVLzErmJyQkEcRk6PSR4zsRQFEc%3D' (2025-02-01) → 'github:nixos/nixpkgs/c6e957d81b96751a3d5967a0fd73694f303cc914?narHash=sha256-nLivjIygCiqLp5QcL7l56Tca/elVqM9FG1hGd9ZSsrg%3D' (2025-02-03) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/35c6f8c4352f995ecd53896200769f80a3e8f22d?narHash=sha256-GdyT9QEUSx5k/n8kILuNy83vxxdyUfJ8jL5mMpQZWfw%3D' (2025-02-03) → 'github:oxalica/rust-overlay/1ff8663cd75a11e61f8046c62f4dbb05d1907b44?narHash=sha256-5MbJhh6nz7tx8FYVOJ0%2BixMaEn0ibGzV/hScPMmqVTE%3D' (2025-02-04) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
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 |