No description
Erwin Boskma
481791c950
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/19f70cdc918769e0485b0e4aba4069327e96dc3b?narHash=sha256-thdSd8oeztVJ3Ly2SvPCfoP%2BFCoDQCVHSizO0vMGHsI%3D' (2024-04-16) → 'github:atuinsh/atuin/cb19925011d889c513e1bbedc446e399597e38a0?narHash=sha256-t908c6ksrKweZU6Hag4dlFvk238oUgBxccnK9T25UMk%3D' (2024-04-17) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/502906af674eae890790ec48cad959d42dc2f040?narHash=sha256-LpbYsViVHQ19Qyjw4FxlTWcZNSbiagMfPMrUBuDVTBk%3D' (2024-04-16) → 'github:nix-community/emacs-overlay/208d00a7f96d920a153ab90f257357e1aa1d6d77?narHash=sha256-%2BZtrHsUp8vEbQ9FFTj%2B4ku7byW/ly1JVNqgdiNVBMis%3D' (2024-04-17) • Updated input 'home-manager': 'github:nix-community/home-manager/1c43dcfac48a2d622797f7ab741670fdbcf8f609?narHash=sha256-t0P/rKlsE5l1O3O2LYtAelLzp7PeoPCSzsIietQ1hSM%3D' (2024-04-15) → 'github:nix-community/home-manager/fa8c16e2452bf092ac76f09ee1fb1e9f7d0796e7?narHash=sha256-LmaabaQZdx52MPGKPRt9Opoc9Gd9RbwvCdysUUYQoXI%3D' (2024-04-16) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/f58b25254be441cd2a9b4b444ed83f1e51244f1f?narHash=sha256-7/5ubuwdEbQ7Z%2BVqd4u0mM5L2VMNDsBh54visp27CtQ%3D' (2024-04-12) → 'github:NixOS/nixos-hardware/f2d364de6589f7a029624983593eafc3c4dac726?narHash=sha256-OrBm62B%2BX9jylr6cPgKc%2B5OSgF2PRW9IY0ARCOtURMY%3D' (2024-04-17) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/cfd6b5fc90b15709b780a5a1619695a88505a176?narHash=sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM%3D' (2024-04-12) → 'github:nixos/nixpkgs/5672bc9dbf9d88246ddab5ac454e82318d094bb8?narHash=sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U%2BISA%3D' (2024-04-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/847bc25ebab8dc72a86d2b1f0c088740eebbb1b8?narHash=sha256-dPGrCy5ttx6E3bUOmDynY/cAotRqvoIAimZlbv%2BZr1w%3D' (2024-04-16) → 'github:oxalica/rust-overlay/7ce479797ae35ab40fbdf04fe5a8f8bfc92a2634?narHash=sha256-HY8uzaDMzn6umca2kE4ce5BEujaw%2BgvEiC5xTwAHSC4%3D' (2024-04-17) |
||
---|---|---|
.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 |