No description
Erwin Boskma
63c7a2966c
Flake lock file updates: • Updated input 'ghostty': 'github:ghostty-org/ghostty/132c4f1f68d75813370cadfc090f96a32be19705?narHash=sha256-0O%2Bw/MYI7xC4h1MmNg8rPVUIGPIIZYv%2BVq0ZAY%2BMnW4%3D' (2025-01-13) → 'github:ghostty-org/ghostty/3cdb9a7dfe59fa46dde27b5ada5932bbe42094b8?narHash=sha256-8VTYxeRGp7pvKNz0/yMOvgnnWQ4DOHPAckQUzgpXw4o%3D' (2025-01-14) • Updated input 'nixos-facter-modules': 'github:numtide/nixos-facter-modules/536472754982bf03079b4b4e0261838a760587c0?narHash=sha256-MRqwVAe3gsb88u4ME1UidmZFVCx%2BFEnoob0zkpO9DMY%3D' (2024-12-19) → 'github:numtide/nixos-facter-modules/8c92c91e7cc449796bedf772ec6373f61df38c07?narHash=sha256-zsBwbF7J5cy96%2B9/IoxJVxSB22lSyHpwqWjMSRJB6ZU%3D' (2025-01-14) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ed4a395ea001367c1f13d34b1e01aa10290f67d6?narHash=sha256-jG/%2BMvjVY7SlTakzZ2fJ5dC3V1PrKKrUEOEE30jrOKA%3D' (2025-01-12) → 'github:nixos/nixpkgs/9abb87b552b7f55ac8916b6fc9e5cb486656a2f3?narHash=sha256-qwpCtZhSsSNQtK4xYGzMiyEDhkNzOCz/Vfu4oL2ETsQ%3D' (2025-01-13) • Updated input 'sops': 'github:Mic92/sops-nix/0f4744b5a95151a85c4f35010dd2d748228f7f53?narHash=sha256-eON7amRmBl59QH6K9uypewkKveaNbosY6CtUgRcv7YU%3D' (2025-01-13) → 'github:Mic92/sops-nix/553c7cb22fed19fd60eb310423fdc93045c51ba8?narHash=sha256-wlgdf/n7bJMLBheqt1jmPoxJFrUP6FByKQFXuM9YvIk%3D' (2025-01-13) |
||
---|---|---|
.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 |