No description
Erwin Boskma
661056bb4e
Flake lock file updates: • Updated input 'anyrun': 'github:Kirottu/anyrun/e14da6c37337ffa3ee1bc66965d58ef64c1590e5?narHash=sha256-hI9%2BKBShsSfvWX7bmRa/1VI20WGat3lDXmbceMZzMS4%3D' (2023-12-01) → 'github:Kirottu/anyrun/be6728884d543665e7bd137bbef62dc1d04a210b?narHash=sha256-LpjQJYC24S5P5XhJsZX6HqsQT1pohcFzM6N42I6qo/U%3D' (2024-04-03) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/5dee04f5269dffad92faf3a8210c03e639d86db2?narHash=sha256-Yr%2BcDDESdm2E9C/nj1nlhrMpyYt1/Va9yXvlRYD9SyA%3D' (2024-04-02) → 'github:nix-community/emacs-overlay/5d0a10938c32f3cb95d1f1f18127948d239c6720?narHash=sha256-QzrcwGuuAP1octIcUw/d%2BYi5BEXYt1NOwNLpeUrqKTk%3D' (2024-04-03) • Updated input 'home-manager': 'github:nix-community/home-manager/4be0464472675212654dedf3e021bd5f1d58b92f?narHash=sha256-O2nO7pD%2Bkrq%2B4HgkLB4VThRtAucIPfXDs/jJqCGlK1w%3D' (2024-04-02) → 'github:nix-community/home-manager/80546b220e95a575c66c213af1b09fe255299438?narHash=sha256-94I0sXz6fiVBvUAk2tg6t3UpM5rOImj4JTSTNFbg64s%3D' (2024-04-02) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/642dce09c85b1478b509416f83e72bd59b6b3ac2?narHash=sha256-werD6WtgYo%2BZGopbLENP0phwoWyd73CWz01VgrFOSL0%3D' (2024-04-02) → 'github:cachix/pre-commit-hooks.nix/e35aed5fda3cc79f88ed7f1795021e559582093a?narHash=sha256-4XLvuSIDZJGS17xEwSrNuJLL7UjDYKGJSbK1WWX2AK8%3D' (2024-04-02) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/d45d957dc3c48792af7ce58eec5d84407655e8fa?narHash=sha256-52cf%2BmHZJbSaDFdsBj6vN1hH52AXsMgEpS/ajzc9yQE%3D' (2024-04-02) → 'github:oxalica/rust-overlay/74deb67494783168f5b6d2071d73177e6bccab65?narHash=sha256-8LU2IM4ctHz043hlzoFUwQS1QIdhiMGEH/oIfPCxoWU%3D' (2024-04-03) |
||
---|---|---|
.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 |