No description
Erwin Boskma
3c1b019a9f
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/81d4eb044fac45daf51281a046d413a40f05d103?narHash=sha256-jPEUYELo7ACEiFU7jKDdQ%2ByC5OkqG2UcHk1/N%2BN7f3E%3D' (2024-03-26) → 'github:nix-community/emacs-overlay/9f6f38ce57d29b78cc6db45cf87813ae631641ec?narHash=sha256-Z7JxlKxbhGWLOvypllSMGhDMWd/A2Hv8zRKJY3a9TTY%3D' (2024-03-27) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/44d0940ea560dee511026a53f0e2e2cde489b4d4?narHash=sha256-YN/Ciidm%2BA0fmJPWlHBGvVkcarYWSC%2Bs3NTPk/P%2Bq3c%3D' (2024-03-23) → 'github:nixos/nixpkgs/57e6b3a9e4ebec5aa121188301f04a6b8c354c9b?narHash=sha256-5PiWGn10DQjMZee5NXzeA6ccsv60iLu%2BXtw%2BmfvkUAs%3D' (2024-03-25) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/db656fc3e34907000df26e8bc5cc3c94fb27f353?narHash=sha256-%2BrTCra8TY4vuSNTtQ0tcex1syCRPoKyb8vyHmoxkga4%3D' (2024-03-25) → 'github:cachix/pre-commit-hooks.nix/7d47a32e5cd1ea481fab33c516356ce27c8cef4a?narHash=sha256-Q7YmSCUJmDl71fJv/zD9lrOCJ1/SE/okZ2DsrmRjzhY%3D' (2024-03-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/4c11d2f698ff1149f76b69e72852d5d75f492d0c?narHash=sha256-%2B5M/czgYGqs/jKmi8bvYC%2BJUYboUKNTfkRiesXopeXQ%3D' (2024-03-26) → 'github:oxalica/rust-overlay/56f48d6e7559b807763ea03191bfaf95549ce610?narHash=sha256-yK1zue1c8EdpZvEyQWrjawG9Ykzl7eB2xJ/V%2B2vU5Jo%3D' (2024-03-27) |
||
---|---|---|
.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 |