No description
Erwin Boskma
bad2a57e2f
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9855d7f268dffa9643f9bc3eaabb7957f4a3c476' (2023-07-24) → 'github:nix-community/emacs-overlay/9815e71dd833db0b076072df6f7ea46737854470' (2023-07-25) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/6da4bc6cb07cba1b8e53d139cbf1d2fb8061d967' (2023-07-21) → 'github:NixOS/nixpkgs/ac1acba43b2f9db073943ff5ed883ce7e8a40a2c' (2023-07-23) • Updated input 'home-manager': 'github:nix-community/home-manager/d309a62ee81faec56dd31a263a0184b0e3227e36' (2023-07-24) → 'github:nix-community/home-manager/0306d5ed7e9d1662b55ec0d08afc73d4cb5eadca' (2023-07-25) • Updated input 'microvm': 'github:astro/microvm.nix/4b0f24f26638937036dc0dc9e28d2bab4152ef3d' (2023-07-19) → 'github:astro/microvm.nix/062fd71f2a8f25c5d80864eb99bdff98e1684efb' (2023-07-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/12303c652b881435065a98729eb7278313041e49' (2023-07-22) → 'github:nixos/nixpkgs/b12803b6d90e2e583429bb79b859ca53c348b39a' (2023-07-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/317c523c09218f27f1da1ec0d06bbd2cbc0c1939' (2023-07-24) → 'github:oxalica/rust-overlay/8d64353ca827002fb8459e44d49116c78d868eba' (2023-07-25) |
||
---|---|---|
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 |