No description
Erwin Boskma
a71090014f
• Updated input 'disko': 'github:nix-community/disko/f6983108d8edba6cff6961e8fb03c93fb795f3ad' (2023-03-27) → 'github:nix-community/disko/3a1c23eefcb1eec4fed63039c2d5594a02351ae0' (2023-03-27) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b32f0d1f5553c19df3695667bb6b59aa54601aa0' (2023-03-27) → 'github:nix-community/emacs-overlay/7ecb77c734114cd51f4f79b91725f3b6aae9f0cc' (2023-03-28) • Updated input 'home-manager': 'github:nix-community/home-manager/cf662b6c98a0da81e06066fff0ecf9cbd4627727' (2023-03-25) → 'github:nix-community/home-manager/765e4007b6f9f111469a25d1df6540e8e0ca73a6' (2023-03-28) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/f38f9a4c9b2b6f89a5778465e0afd166a8300680' (2023-03-25) → 'github:NixOS/nixos-hardware/82ecc5b88ffed8c0317c064dfd8f82f4b9882100' (2023-03-27) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4361baa782dc3d3b35fd455a1adc370681d9187c' (2023-03-26) → 'github:nixos/nixpkgs/4bb072f0a8b267613c127684e099a70e1f6ff106' (2023-03-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/898c5b2e11a1bcdf056573f9b1cdf920c5ae4ed2' (2023-03-27) → 'github:oxalica/rust-overlay/26ef1a2029239e204e51ab3402f8aae5aa1187ed' (2023-03-28) • Updated input 'sops': 'github:Mic92/sops-nix/4740f80ca6e756915aaaa0a9c5fbb61ba09cc145' (2023-03-26) → 'github:Mic92/sops-nix/5b26523e28989a7f56953b695184070c06335814' (2023-03-28) |
||
---|---|---|
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 |