No description
Erwin Boskma
f70e216691
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/00fe9cdc30398cb126f104a8bebbfaf3b2344ccb' (2023-11-22) → 'github:nix-community/emacs-overlay/cc8840b8c004b94164b38d003581cba25bb44c99' (2023-11-24) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/0c5678df521e1407884205fe3ce3cf1d7df297db' (2023-11-19) → 'github:NixOS/nixpkgs/8f1180704ac35baded1a74164365ac7cdfba6f38' (2023-11-22) • Updated input 'home-manager': 'github:nix-community/home-manager/1aabb0a31b25ad83cfaa37c3fe29053417cd9a0f' (2023-11-21) → 'github:nix-community/home-manager/e1f3b36ab01573fd35cae57d21f45d520433df61' (2023-11-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:nixos/nixpkgs/19cbff58383a4ae384dea4d1d0c823d72b49d614' (2023-11-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/7c94410d52d4e8bd72803fc1fe6c51fe179edaf5' (2023-11-22) → 'github:oxalica/rust-overlay/fbe3f99f47bdb85fe2b9a2387d20c75d57e8632f' (2023-11-24) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.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 |