No description
Erwin Boskma
b8a0f7eed0
• Updated input 'disko': 'github:nix-community/disko/0d270372b21818eba342954220c1a30a7bdaba19' (2023-05-30) → 'github:nix-community/disko/d02e565b95bdc68d8d7179a8eae27a1e4b04e507' (2023-06-04) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7735f53ef8f28d80ca5339e486e29177ed7c8297' (2023-05-30) → 'github:nix-community/emacs-overlay/70db17480e76d556cc5363c1ba22cd591c83fa76' (2023-06-04) • Added input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/eaf03591711b46d21abc7082a8ebee4681f9dbeb' (2023-06-03) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/006c75898cf814ef9497252b022e91c946ba8e17' (2023-05-08) → 'github:hercules-ci/flake-parts/71fb97f0d875fd4de4994dfb849f2c75e17eb6c3' (2023-06-01) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/da45bf6ec7bbcc5d1e14d3795c025199f28e0de0?dir=lib' (2023-04-30) → 'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31) • Updated input 'flake-utils': 'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11) → 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31) • Updated input 'home-manager': 'github:nix-community/home-manager/9f82227b64245c273d98dd02dedd44fc7576041e' (2023-05-30) → 'github:nix-community/home-manager/57ed23cd29e7b72518e19d2917e2b2880a94162c' (2023-06-04) • Updated input 'nil': 'github:oxalica/nil/0158d58d47abecd7f5f4e67c06365ff77bbedbc7' (2023-05-30) → 'github:oxalica/nil/dcd38b96c91a2d07552f824a6480e00dc7b4948a' (2023-05-31) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5e871d8aa6f57cc8e0dc087d1c5013f6e212b4ce' (2023-05-29) → 'github:nixos/nixpkgs/dd4982554e18b936790da07c4ea2db7c7600f283' (2023-06-03) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/9b3284e2412f76bd68ff46f8cf1c7af44d7ffac0' (2023-05-30) → 'github:oxalica/rust-overlay/1ef3c6de6127a1cba94cc5492cdde52e33d06ea4' (2023-06-04) • Updated input 'sops': 'github:Mic92/sops-nix/876846cde9762ae563f018c17993354875e2538e' (2023-05-30) → 'github:Mic92/sops-nix/a522e12ee35e50fa7d902a164a9796e420e6e75b' (2023-06-04) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/ba6e4ddeb3e8ad3f3e3bec63dafbc9fe558729bb' (2023-05-27) → 'github:NixOS/nixpkgs/eaf03591711b46d21abc7082a8ebee4681f9dbeb' (2023-06-03) |
||
---|---|---|
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 |