No description
Erwin Boskma
d1d7e15dbf
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/8b1769035969dc72dab27edd43c7d8667eebaaf9?narHash=sha256-cjQ/a%2BotTl7XinoktlJMINEI741Nv6o/znlKbnH0Uqw%3D' (2024-07-01) → 'github:atuinsh/atuin/a67cfc82fe0dc907a01f07a0fd625701e062a33b?narHash=sha256-0zSXPres0wlhS9n6h44ZzV0TOeWdMsICMlHAGjqkWGE%3D' (2024-07-03) • Updated input 'disko': 'github:nix-community/disko/d185770ea261fb5cf81aa5ad1791b93a7834d12c?narHash=sha256-6h2EqZU9bL9rHlXE%2B2LCBgnDImejzbS%2B4dYsNDDFlkY%3D' (2024-06-30) → 'github:nix-community/disko/544a80a69d6e2da04e4df7ec8210a858de8c7533?narHash=sha256-e4Pw%2B30vFAxuvkSTaTypd9zYemB/QlWcH186dsGT%2BMs%3D' (2024-07-01) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9dd348fbc5c9708a607cda51b70958491bf925b3?narHash=sha256-5AWx8t05lS6nlLca4OvWPY2HeFp2q6y5t2/H9jQShfc%3D' (2024-07-01) → 'github:nix-community/emacs-overlay/bbe883e60c65dd9254d010e98a1a8a654a26f9d8?narHash=sha256-1E5AX/Si2p2yXuMX5yixQ%2BP1AeVcrV0%2B2gfuBrTRkgY%3D' (2024-07-02) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/4a1e673523344f6ccc84b37f4413ad74ea19a119?narHash=sha256-tXlrgAQygNIy49LDVFuPXlWD2zTQV9/F8pfoqwwPJyo%3D' (2024-06-29) → 'github:NixOS/nixpkgs/28f8f3531ebdbea069995c20bd946a295699f275?narHash=sha256-sTya/Vhqtdi7Kxx/eVldJRGTPKcyGgFG3ZugOqcbmiE%3D' (2024-07-01) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/c3c5ecc05edc7dafba779c6c1a61cd08ac6583e9?narHash=sha256-xwgjVUpqSviudEkpQnioeez1Uo2wzrsMaJKJClh%2BBls%3D' (2024-06-30) → 'github:hercules-ci/flake-parts/9227223f6d922fee3c7b190b2cc238a99527bbb7?narHash=sha256-pQMhCCHyQGRzdfAkdJ4cIWiw%2BJNuWsTX7f0ZYSyz0VY%3D' (2024-07-03) • Updated input 'flake-parts/nixpkgs-lib': ' |
||
---|---|---|
.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 |