No description
Erwin Boskma
244edccd02
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/dce15e40f673c6ba58fc40a0a59587f19476b20b' (2023-04-03) → 'github:nix-community/emacs-overlay/8d3390e69f6f850f33e7b70d2c7a4b83c5f69871' (2023-04-05) • Updated input 'home-manager': 'github:nix-community/home-manager/ddd8866c0306c48f465e7f48432e6f1ecd1da7f8' (2023-04-01) → 'github:nix-community/home-manager/ec06f419af79207b33d797064dfb3fc9dbe1df4a' (2023-04-04) • Updated input 'home-manager/utils': 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13) → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15) • Updated input 'nil': 'github:oxalica/nil/0718fca59b82e53aef07699db7e1bbd86ba8dacf' (2023-03-30) → 'github:oxalica/nil/56a1fa87b98a9508920f4b0ab8fe36d5b54b2362' (2023-04-03) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e3652e0735fbec227f342712f180f4f21f0594f2' (2023-03-30) → 'github:nixos/nixpkgs/53dad94e874c9586e71decf82d972dfb640ef044' (2023-04-03) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/29dbe1efaa91c3a415d8b45d62d48325a4748816' (2023-03-30) → 'github:cachix/pre-commit-hooks.nix/3342d7c51119030490fdcd07351b53b10806891c' (2023-04-04) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/7ec2ff598a172c6e8584457167575b3a1a5d80d8' (2023-04-03) → 'github:oxalica/rust-overlay/2f40052be98347b479c820c00fb2fc1d87b3aa28' (2023-04-05) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 exa 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 |