No description
Erwin Boskma
b30e0740ae
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/ce67e527722cadd4ed7341a3e5d433beb62887f6?narHash=sha256-D6/orzTugeq4wxOye0uBDipif9iM4MZY9e6geFHU91M%3D' (2024-05-13) → 'github:atuinsh/atuin/2e35af1c86dc3ddb02dbababf909c7f5248368c3?narHash=sha256-FiqOiHmr4a9IIWjbDd88Lt6Do78TKEbMbNYPlyBcfSY%3D' (2024-05-16) • Updated input 'disko': 'github:nix-community/disko/e972a78f4a49cd92075d64b6feeef64d26bf2996?narHash=sha256-DDXZOKK0C5YeZ/GTUj7HiT%2BoqYIt8%2BqTsldaDvhWHFc%3D' (2024-05-13) → 'github:nix-community/disko/476eef8d85aa09389ae7baf6e6b60357f6a01432?narHash=sha256-Z4ZoyK8jYRmBZwMaEZLEmAilrfdpekwwwohliqC14/E%3D' (2024-05-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/6ca9fed2e0e1584d6394456aed3a9b2ed3571ac6?narHash=sha256-va6ZPJhZ3Sltk8tpa7sDZu4mijwBmwrnHn6AWeOjdno%3D' (2024-05-13) → 'github:nix-community/emacs-overlay/f72623860d10a4fe8c49ced4fb1e62b8aafba83b?narHash=sha256-Oe3XNGqhNwEDZjKKJea8Iu1v0UBDQf3ghRKF6DMx66I%3D' (2024-05-16) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/71bae31b7dbc335528ca7e96f479ec93462323ff?narHash=sha256-DreMqi6%2Bqa21ffLQqhMQL2XRUkAGt3N7iVB5FhJKie4%3D' (2024-05-11) → 'github:NixOS/nixpkgs/9ddcaffecdf098822d944d4147dd8da30b4e6843?narHash=sha256-xp62OkRkbUDNUc6VSqH02jB0FbOS%2BMsfMb7wL1RJOfA%3D' (2024-05-14) • Updated input 'microvm': 'github:astro/microvm.nix/e9977efbe34b554c3e393dc9a18509905a4080e5?narHash=sha256-MmIZR67wOP3Nr9b3XpsvHSZSTDcTmd9cQn2Z8pW1/Hw%3D' (2024-05-03) → 'github:astro/microvm.nix/fa673bf8656fe6f28253b83971a36999bc9995d2?narHash=sha256-TPp2j0ttvBvkk4oXidvo8Y071zEab0BtcNsC3ZEkluI%3D' (2024-05-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/062ca2a9370a27a35c524dc82d540e6e9824b652?narHash=sha256-VsVAUQOj/cS1LCOmMjAGeRksXIAdPnFIjCQ0XLkCsT0%3D' (2024-05-11) → 'github:nixos/nixpkgs/2057814051972fa1453ddfb0d98badbea9b83c06?narHash=sha256-5ZSVkFadZbFP1THataCaSf0JH2cAH3S29hU9rrxTEqk%3D' (2024-05-12) • Updated input 'pre-commit-hooks': 'github:cachix/git-hooks.nix/2849da033884f54822af194400f8dff435ada242?narHash=sha256-q//cgb52vv81uOuwz1LaXElp3XAe1TqrABXODAEF6Sk%3D' (2024-04-30) → 'github:cachix/git-hooks.nix/c182c876690380f8d3b9557c4609472ebfa1b141?narHash=sha256-/5u29K0c%2B4jyQ8x7dUIEUWlz2BoTSZWUP2quPwFCE7M%3D' (2024-05-13) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/6c465248316cd31502c82f81f1a3acf2d621b01c?narHash=sha256-OpI0TnN%2BuE0vvxjPStlTzf5RTohIXVSMwrP9NEgMtaY%3D' (2024-05-13) → 'github:oxalica/rust-overlay/55f468b3d49c5d3321e85f2f9b1158476a2a90fb?narHash=sha256-7np2/EEr5Xm8IuKWQ43q8AA1Lb6Us2BW6rYMxGrInIg%3D' (2024-05-16) |
||
---|---|---|
.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 |