No description
Erwin Boskma
4d004e756e
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9b3881d181a32137f97514cbf43cc51bafcef283' (2023-08-22) → 'github:nix-community/emacs-overlay/47a747748b3a978425ad7eeec008ef7308e7a92a' (2023-08-24) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/475d5ae2c4cb87b904545bdb547af05681198fcc' (2023-08-20) → 'github:NixOS/nixpkgs/a16f7eb56e88c8985fcc6eb81dabd6cade4e425a' (2023-08-22) • Updated input 'flake-utils': 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11) → 'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23) • Updated input 'home-manager': 'github:nix-community/home-manager/ea59b79f31beaf4a8cb0ea2fc4dfba5732e4212a' (2023-08-22) → 'github:nix-community/home-manager/6a20e40acaebf067da682661aa67da8b36812606' (2023-08-23) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/d680ded26da5cf104dd2735a51e88d2d8f487b4d' (2023-08-19) → 'github:nixos/nixpkgs/b85ed9dcbf187b909ef7964774f8847d554fab3b' (2023-08-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/bf5196c27545735374376d96d41f209bae3643e1' (2023-08-22) → 'github:oxalica/rust-overlay/8f6d56270ec028a340583111609b12663f5d7490' (2023-08-24) • Updated input 'sops': 'github:Mic92/sops-nix/4f0f113b7dbcb92edb9c901515fcab0b91c6def7' (2023-08-20) → 'github:Mic92/sops-nix/1b7b3a32d65dbcd69c217d7735fdf0a6b2184f45' (2023-08-22) |
||
---|---|---|
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 |