No description
Erwin Boskma
e7fee4d3be
• Updated input 'caddy-with-plugins': 'github:eboskma/caddy-with-plugins/8395505b17f15487e2a222dcfbb0560f10bfb590' (2023-08-09) → 'github:eboskma/caddy-with-plugins/f94748a89ca1a1da1ec66306f15e5a208dff92a8' (2023-08-09) • Updated input 'disko': 'github:nix-community/disko/4015740375676402a2ee6adebc3c30ea625b9a94' (2023-07-30) → 'github:nix-community/disko/32e7d56c080e1b07c5f3d3ed6063c3ec64c5a8f8' (2023-08-10) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/791acfa700b9f96c35635fde2a17a66b4ed88c9e' (2023-08-03) → 'github:nix-community/emacs-overlay/0ac7913c1f81f4b705a268a0bd462729b7c2e7ec' (2023-08-10) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/bd836ac5e5a7358dea73cb74a013ca32864ccb86' (2023-08-01) → 'github:NixOS/nixpkgs/78287547942dd8e8afff0ae47fb8e2553db79d7e' (2023-08-08) • Updated input 'home-manager': 'github:nix-community/home-manager/86dd48d70a2e2c17e84e747ba4faa92453e68d4a' (2023-08-03) → 'github:nix-community/home-manager/6e1eff9aac0e8d84bda7f2d60ba6108eea9b7e79' (2023-08-10) • Updated input 'microvm': 'github:astro/microvm.nix/0263360417f214c1e5a585210e43d950d00bc683' (2023-08-01) → 'github:astro/microvm.nix/d5c5bb4cebbd9f59b7ab81a4b36fea10b6016d38' (2023-08-06) • Updated input 'nil': 'github:oxalica/nil/6f20ed411520aac06b456e31aab43cf10df231a2' (2023-08-02) → 'github:oxalica/nil/97abe7d3d48721d4e0fcc1876eea83bb4247825b' (2023-08-07) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/24f9162b26f0debd163f6d94752aa2acb9db395a' (2023-08-02) → 'github:NixOS/nixos-hardware/8ff521acd2c8132c62141c2990deb7406e32b335' (2023-08-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ef99fa5c5ed624460217c31ac4271cfb5cb2502c' (2023-07-25) → 'github:nixos/nixpkgs/e528fa15d5f740a25b5f536c33932db64cb10fc8' (2023-08-09) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/fcbf4705d98398d084e6cb1c826a0b90a91d22d7' (2023-07-30) → 'github:cachix/pre-commit-hooks.nix/e5588ddffd4c3578547a86ef40ec9a6fbdae2986' (2023-08-07) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03) → 'github:oxalica/rust-overlay/48f3d76f512c7267d82d84c5d3d156ad2b9a8d12' (2023-08-10) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.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 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 |