No description
Erwin Boskma
545e7cb66c
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/a70fd6e93de6f0d0bca3c02f9cc1acbaa914254e' (2023-11-20) → 'github:nix-community/emacs-overlay/3fa8724200bc0329d2d7ca3becf623dbed61431b' (2023-11-21) • Updated input 'home-manager': 'github:nix-community/home-manager/993fb02d20760067b8ee19c713d94cee07037759' (2023-11-19) → 'github:nix-community/home-manager/1aabb0a31b25ad83cfaa37c3fe29053417cd9a0f' (2023-11-21) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/2b00bc76dc893cd996a3d76a2f059d657a5ef37a' (2023-11-19) → 'github:NixOS/nixos-hardware/c3abafb01cd7045dba522af29b625bd1e170c2fb' (2023-11-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/e17bfe3baa0487f0671c9ed0e9057d10987ba7f7' (2023-11-20) → 'github:oxalica/rust-overlay/6da9555a6d691bcdf43f90d8fd445e96d246f807' (2023-11-21) |
||
---|---|---|
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 |