No description
Erwin Boskma
9049d3f85b
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/070389cdd38008ad49d8097e18817db7cd6ddc2b' (2023-01-09) → 'github:nix-community/emacs-overlay/9066f92a2f6334de8977240e221278aba8037d7a' (2023-01-12) • Updated input 'home-manager': 'github:nix-community/home-manager/69806e937881c75269e058daecf49d9c39bd034e' (2023-01-09) → 'github:nix-community/home-manager/176e455371a8371586e8a3ff0d56ee9f3ca2324e' (2023-01-10) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/ff118834829dd0db37e3622480756776b368bd4a' (2023-01-09) → 'github:Hyprwm/Hyprland/11afb660102198abb1e74fffdffd00f8c1a11cd9' (2023-01-11) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ca29e25c39b8e117d4d76a81f1e229824a9b3a26' (2023-01-02) → 'github:NixOS/nixos-hardware/88016c96c3c338aa801695cdd9f186820bcfe4d6' (2023-01-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/f6f44561884c3470e2b783683d5dbac42dfc833b' (2023-01-07) → 'github:nixos/nixpkgs/c07552f6f7d4eead7806645ec03f7f1eb71ba6bd' (2023-01-10) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/f3b402838c49b0989c07494f6f5db77dfce0ce97' (2023-01-09) → 'github:cachix/pre-commit-hooks.nix/f8992fb404c7e79638192a10905b7ea985818050' (2023-01-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/3488cec01351c2f1086b02a3a61808be7a25103e' (2023-01-09) → 'github:oxalica/rust-overlay/0833f4d063a2bb75aa31680f703ba594a384ffe6' (2023-01-12) • Updated input 'sops': 'github:Mic92/sops-nix/2253120d2a6147e57bafb5c689e086221df8032f' (2023-01-08) → 'github:Mic92/sops-nix/32187b33ac6ec9b628dcd08dd941a715e6241dda' (2023-01-12) |
||
---|---|---|
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 |