No description
Erwin Boskma
6c5e5c9e1e
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/2806dea6457fed28013169a05a6dcf9c722d5465' (2023-05-23) → 'github:nix-community/emacs-overlay/30d50ec907edd37cafd215a922e97a0d58af4994' (2023-05-26) • Updated input 'home-manager': 'github:nix-community/home-manager/58eb968c21d309a6c2b020ea8d64e25c38ceebba' (2023-05-23) → 'github:nix-community/home-manager/d1f04b0f365a34896a37d9015637796537ec88a3' (2023-05-25) • Updated input 'microvm': 'github:astro/microvm.nix/59008a1eda995fbd844a756412f7d685086c15a2' (2023-05-17) → 'github:astro/microvm.nix/583785ae6c046288c8451667f3182ffee9662006' (2023-05-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/71ce85372a614d418d5e303dd5702a79d1545c04' (2023-05-15) → 'github:NixOS/nixos-hardware/4cc688ee711159b9bcb5a367be44007934e1a49d' (2023-05-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/7084250df3d7f9735087d3234407f3c1fc2400e3' (2023-05-22) → 'github:nixos/nixpkgs/f91ee3065de91a3531329a674a45ddcb3467a650' (2023-05-24) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/df448ffc5d244f52261d05894c5a96af7f3758a1' (2023-05-22) → 'github:cachix/pre-commit-hooks.nix/61e567d6497bc9556f391faebe5e410e6623217f' (2023-05-23) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/a227d4571dd1f948138a40ea8b0d0c413eefb44b' (2023-05-23) → 'github:oxalica/rust-overlay/b51083ca078b79db94e954e63655ba754956d7ef' (2023-05-26) |
||
---|---|---|
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 |