No description
Erwin Boskma
f2c1ffef89
• Updated input 'disko': 'github:nix-community/disko/eb5def310c7331545e72090b4cda6cb0255b870d' (2023-03-24) → 'github:nix-community/disko/f6983108d8edba6cff6961e8fb03c93fb795f3ad' (2023-03-27) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/f03b172233e1bf1fb2ffbc543b86aae00fbad444' (2023-03-24) → 'github:nix-community/emacs-overlay/b32f0d1f5553c19df3695667bb6b59aa54601aa0' (2023-03-27) • Updated input 'home-manager': 'github:nix-community/home-manager/363c46b2480f1b73ec37cf68caac61f5daa82a2e' (2023-03-22) → 'github:nix-community/home-manager/cf662b6c98a0da81e06066fff0ecf9cbd4627727' (2023-03-25) • Updated input 'nil': 'github:oxalica/nil/73fda843416741f870a97c23867f27efb9fd9f20' (2023-03-24) → 'github:oxalica/nil/775ba9e6ac31a3b20ecec7ae3c29ca1a7baee3b1' (2023-03-26) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/648021dcb2b65498eed3ea3a7339cdfc3bea4d82' (2023-03-23) → 'github:NixOS/nixos-hardware/f38f9a4c9b2b6f89a5778465e0afd166a8300680' (2023-03-25) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21) → 'github:nixos/nixpkgs/4361baa782dc3d3b35fd455a1adc370681d9187c' (2023-03-26) • Updated input 'nomachine': 'github:rytec-nl/nixpkgs/a312461214aa64253b74bd31f0d4a32cd029a932' (2022-08-04) → 'github:rytec-nl/nixpkgs/1378a89625f1f98e77920dc3e6f899a16f20f9be' (2023-03-26) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24) → 'github:oxalica/rust-overlay/898c5b2e11a1bcdf056573f9b1cdf920c5ae4ed2' (2023-03-27) • Updated input 'sops': 'github:Mic92/sops-nix/d8827a8368c307fbc6ed594c9a31d619e7360bed' (2023-03-21) → 'github:Mic92/sops-nix/4740f80ca6e756915aaaa0a9c5fbb61ba09cc145' (2023-03-26) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/c3912035d00ef755ab19394488b41feab95d2e40' (2023-03-18) → 'github:NixOS/nixpkgs/da26ae9f6ce2c9ab380c0f394488892616fc5a6a' (2023-03-25) |
||
---|---|---|
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 |