No description
Erwin Boskma
c1dc0f4b3d
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/88633b8994437180afdd66068cc2c8f02aea1db1?narHash=sha256-TsRI1Ej7gkAWhUhT3vDa4aEhu20AX8KbbUM2iD%2B6gkw%3D' (2024-06-17) → 'github:atuinsh/atuin/bb24f022640f3b23f570c5a05d2e9dd731db7c18?narHash=sha256-hzU9CXPZijcjCUn/rszEBUskbctfEGQMqGjfas6pKEA%3D' (2024-06-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/27e6ef6f477ba42dc8682ed854a519cbea4bacaf?narHash=sha256-ALCQMCzcZuumVF/PaxW0xShwm72U5/2Zk/HHWwZrqlQ%3D' (2024-06-18) → 'github:nix-community/emacs-overlay/3d4fbfcca3379975205ff861c2055c014ba8b77e?narHash=sha256-yZuwr3Cd7a5AwU6kRW5wO7Y7s71wQClOdA%2Be7zsX%2BiI%3D' (2024-06-19) • Updated input 'home-manager': 'github:nix-community/home-manager/0a7ffb28e5df5844d0e8039c9833d7075cdee792?narHash=sha256-sKrD/utGvmtQALvuDj4j0CT3AJXP1idOAq2p%2B27TpeE%3D' (2024-06-16) → 'github:nix-community/home-manager/0dd1c1495af6e6424695670343236f0053bf4947?narHash=sha256-kOG10gJ3zLZNiom9NXJM4/mA4/lsmR3rp74YVw%2Biros%3D' (2024-06-18) • Updated input 'naersk': 'github:nix-community/naersk/fa19d8c135e776dc97f4dcca08656a0eeb28d5c0?narHash=sha256-oIs5EF%2B6VpHJRvvpVWuqCYJMMVW/6h59aYUv9lABLtY%3D' (2024-05-30) → 'github:nix-community/naersk/941ce6dc38762a7cfb90b5add223d584feed299b?narHash=sha256-uFsCwWYI2pUpt0awahSBorDUrUfBhaAiyz%2BBPTS2MHk%3D' (2024-06-18) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/16c8ad83297c278eebe740dea5491c1708960dd1?narHash=sha256-E/T7Ge6ayEQe7FVKMJqDBoHyLhRhjc6u9CmU8MyYfy0%3D' (2024-06-18) → 'github:oxalica/rust-overlay/69fcfaebbe564d162a85cadeaadd4dec646be4a2?narHash=sha256-JHqQyO5XppLpMSKBaYlxbmPHMc4DpwuavKIch9W%2Bhv4%3D' (2024-06-19) |
||
---|---|---|
.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 |