No description
Erwin Boskma
664ce02668
Flake lock file updates: • Updated input 'anyrun': 'github:Kirottu/anyrun/7aabad8d5bb7d1bffae903ce86427b888ab824b4?narHash=sha256-LU6d1xX7jN1zt10YU7Oym07MtzVfziSmUEznGFdbuaw%3D' (2024-06-05) → 'github:Kirottu/anyrun/c6101a31a80b51e32e96f6a77616b609770172e0?narHash=sha256-ZhSA0e45UxiOAjEVqkym/aULh0Dt%2BKHJLNda7bjx9UI%3D' (2024-07-16) • Updated input 'atuin': 'github:atuinsh/atuin/7eb985b616c12aed261fbef74a47c5a928c03e61?narHash=sha256-T%2BkLHwraj0u238/MoqYKrtz4rKZT4a4UAzEs%2BZGqLsQ%3D' (2024-07-15) → 'github:atuinsh/atuin/62f3807dcb4844f74b59c7bcfb81c9a914da7353?narHash=sha256-Q/zmd7YREW3D4pMxGV7iulibm%2BkqQOuoB8TZiLaB0x4%3D' (2024-07-17) • Updated input 'disko': 'github:nix-community/disko/bad376945de7033c7adc424c02054ea3736cf7c4?narHash=sha256-Gof4Lj1rgTrX59bNu5b/uS/3X/marUGM7LYw31NoXEA%3D' (2024-07-15) → 'github:nix-community/disko/e8e8d9a3a9c1d0e654ccda7834bf0288a9d15c47?narHash=sha256-MsyTzXu9CJVcBr44ct8ILKF/Ro7VlF%2BtVZTylzAoXSs%3D' (2024-07-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7c521a93160b3f3deb2325ba5485eabaecc76100?narHash=sha256-di%2BYqstcANGipdJP%2BlQ/vPOlB%2BUIFNSZjg6rlpMOyFs%3D' (2024-07-15) → 'github:nix-community/emacs-overlay/3bbe0ad8b6c1f771b1777022d9aa69f83dbe7f3b?narHash=sha256-V8UuYJyWqKPgDPEaOBduwg2IXVNWzdJkSQvsd3XPBgQ%3D' (2024-07-18) • Updated input 'home-manager': 'github:nix-community/home-manager/90ae324e2c56af10f20549ab72014804a3064c7f?narHash=sha256-neWQ8eNtLTd%2BYMesb7WjKl1SVCbDyCm46LUgP/g/hdo%3D' (2024-07-11) → 'github:nix-community/home-manager/afd2021bedff2de92dfce0e257a3d03ae65c603d?narHash=sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY%3D' (2024-07-16) • Updated input 'microvm': 'github:astro/microvm.nix/a808af7775f508a2afedd1e4940a382fe1194f21?narHash=sha256-fzZpuVnhw5uOtA4OuXw3a%2BOtpy8C%2BQV0Uu5XfhGEPSg%3D' (2024-07-03) → 'github:astro/microvm.nix/36e261aa2c15a4020663cef87905f436b15305f7?narHash=sha256-GKdodvwT9Suh6V0qJ0N/YWTIADWwto/x3XnFO86iXDs%3D' (2024-07-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/3ef018b6d0f62eb59580a8e9fe141e37bf1d972d?narHash=sha256-GuPw2xhJZ%2BeszIJFu7z7AtqUmirSWPHpxuCpG6dSOic%3D' (2024-07-15) → 'github:oxalica/rust-overlay/c3e217122ac55680606d69bc693bdf262f14f602?narHash=sha256-eHrGuKZKQb762qdCkrfoyyxXLKumYhiXJca1ig0RftE%3D' (2024-07-18) |
||
---|---|---|
.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 |