No description
Erwin Boskma
82cb587a11
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/f32c6288cc50298c04a86364e5947c28981c2f7d' (2023-09-29) → 'github:nix-community/emacs-overlay/5f14ec7a4977810a06f8eacb0169374fb4e282e9' (2023-10-01) • Updated input 'home-manager': 'github:nix-community/home-manager/9d4cdf8cc4da54beb5d2e927af7a259bb4a00645' (2023-09-28) → 'github:nix-community/home-manager/6f9b5b83ad1f470b3d11b8a9fe1d5ef68c7d0e30' (2023-10-01) • Updated input 'microvm': 'github:astro/microvm.nix/67bf176ff48141292a66d8bce541463ee49d0fb5' (2023-09-27) → 'github:astro/microvm.nix/95f24548fb7c31257eaf37c86a1e37de21a73645' (2023-09-30) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/adcfd6aa860d1d129055039696bc457af7d50d0e' (2023-09-28) → 'github:NixOS/nixos-hardware/0ab3ee718e964fb42dc57ace6170f19cb0b66532' (2023-10-01) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2' (2023-09-27) → 'github:nixos/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a' (2023-09-29) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/cb770e93516a1609652fa8e945a0f310e98f10c0' (2023-09-24) → 'github:cachix/pre-commit-hooks.nix/033453f85064ccac434dfd957f95d8457901ecd6' (2023-10-01) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/fb948d8eaf5d7c720dec92eb9c75193963fa0c52' (2023-09-29) → 'github:oxalica/rust-overlay/fc6fe50d9a4540a1111731baaa00f207301fdeb7' (2023-10-01) |
||
---|---|---|
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 eza 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 |