No description
Erwin Boskma
4ff5d29915
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3751467118141bafb77a277a6f2626332ab33154' (2023-08-16) → 'github:nix-community/emacs-overlay/5df91433bba7fecf9394c2e07f3f53b357c4f63a' (2023-08-19) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/bfd953b2c6de4f550f75461bcc5768b6f966be10' (2023-08-15) → 'github:NixOS/nixpkgs/ae521bd4e460b076a455dca8b13f4151489a725c' (2023-08-18) • Updated input 'eww': 'github:elkowar/eww/9d0b667deadf9e64d3b692274275d57a61c107c5' (2023-08-16) → 'github:elkowar/eww/a9a35c1804d72ef92e04ee71555bd9e5a08fa17e' (2023-08-18) • Updated input 'home-manager': 'github:nix-community/home-manager/2471d965a3522025157a790fc49c3567fd56e26e' (2023-08-16) → 'github:nix-community/home-manager/bdb5bcad01ff7332fdcf4b128211e81905113f84' (2023-08-19) • Updated input 'microvm': 'github:astro/microvm.nix/d5c5bb4cebbd9f59b7ab81a4b36fea10b6016d38' (2023-08-06) → 'github:astro/microvm.nix/a291d324915f26d1fd86443bd486089099e8b541' (2023-08-17) • Updated input 'naersk': 'github:nix-community/naersk/275010712ce41dff66634f9910bc1f085239b370' (2023-08-16) → 'github:nix-community/naersk/78789c30d64dea2396c9da516bbcc8db3a475207' (2023-08-18) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/430a56dd16fe583a812b2df44dca002acab2f4f6' (2023-08-12) → 'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/caac0eb6bdcad0b32cb2522e03e4002c8975c62e' (2023-08-16) → 'github:nixos/nixpkgs/8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d' (2023-08-18) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/3e3d45c1f26e212abe24188ece996871d94618d8' (2023-08-16) → 'github:cachix/pre-commit-hooks.nix/7e3517c03d46159fdbf8c0e5c97f82d5d4b0c8fa' (2023-08-17) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/dea24da3d3be23ab53ee80314474afd5fcb03c1c' (2023-08-16) → 'github:oxalica/rust-overlay/598b2f04ed252eb5808b108d7a10084c0c548753' (2023-08-19) |
||
---|---|---|
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 |