No description
Erwin Boskma
969d0c5fb2
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/380847d94ff0fedee8b50ee4baddb162c06678df?narHash=sha256-Mhqz3p/HEiI/zxBJWO57LYQf6gGlJB0tci6fiVXLjd8%3D' (2024-11-03) → 'github:nix-community/disko/856a2902156ba304efebd4c1096dbf7465569454?narHash=sha256-sdY29RWz0S7VbaoTwSy6RummdHKf0wUTaBlqPxrtvmQ%3D' (2024-11-04) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3cbb531951b8abd4413ebc04a4e06d214de3cf04?narHash=sha256-JsaxXQEI76Lq6c5KVAzcAvNox0qEzJfC5%2BbYZqtySCk%3D' (2024-11-04) → 'github:nix-community/emacs-overlay/3a071974344ba47573382596d91bd7a94beeac20?narHash=sha256-UJ1D89beMdNVdsOIvhMrQkjNQrxK3dJX2YVC6zWJUgw%3D' (2024-11-05) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/080166c15633801df010977d9d7474b4a6c549d7?narHash=sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8%3D' (2024-10-30) → 'github:NixOS/nixpkgs/d063c1dd113c91ab27959ba540c0d9753409edf3?narHash=sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo%3D' (2024-11-04) • Updated input 'nixos-facter-modules': 'github:numtide/nixos-facter-modules/15b6531d44aa6f0bbd2fd8309cd2a6d7f183ba32?narHash=sha256-AzP%2BtrH/ykBJGTx3twkpuwbkhFSmsY1PJDQtRmK4k4c%3D' (2024-10-27) → 'github:numtide/nixos-facter-modules/c22b916f629fee6941a2976c62247b0bec68082b?narHash=sha256-PzJrTMhHb9f46uMxmRD4GjnyVuNqxeyEvxaq7OierUQ%3D' (2024-11-04) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/41814763a2c597755b0755dbe3e721367a5e420f?narHash=sha256-xQVadjquBA/tFxDt5A55LJ1D1AvkVWsnrKC2o%2Bpr8F4%3D' (2024-11-04) → 'github:oxalica/rust-overlay/e19e9d54fac1e53f73411ebe22d19f946b1ba0bd?narHash=sha256-pULo7GryzLkqGveWvnNWVz1Kk6EJqvq%2BHQeSkwvr7DA%3D' (2024-11-05) • Updated input 'sops': 'github:Mic92/sops-nix/e9b5eef9b51cdf966c76143e13a9476725b2f760?narHash=sha256-1NveNAMLHbxOg0BpBMSVuZ2yW2PpDnZLbZ25wV50PMc%3D' (2024-11-03) → 'github:Mic92/sops-nix/59d6988329626132eaf107761643f55eb979eef1?narHash=sha256-ZGmI%2B3AbT8NkDdBQujF%2BHIxZ%2BsWXuyT6X8B49etWY2g%3D' (2024-11-04) |
||
---|---|---|
.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 |