No description
Erwin Boskma
473a627ca7
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9066f92a2f6334de8977240e221278aba8037d7a' (2023-01-12) → 'github:nix-community/emacs-overlay/0e8abd1a198a954a1206b0306c10285da76a1d1a' (2023-01-13) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/11afb660102198abb1e74fffdffd00f8c1a11cd9' (2023-01-11) → 'github:Hyprwm/Hyprland/cbd31ba481c5be65e015647851eef4b396869073' (2023-01-12) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c07552f6f7d4eead7806645ec03f7f1eb71ba6bd' (2023-01-10) → 'github:nixos/nixpkgs/6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e' (2023-01-11) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/0833f4d063a2bb75aa31680f703ba594a384ffe6' (2023-01-12) → 'github:oxalica/rust-overlay/ca474ccdd5f81ed742328e15dae38bb57a1006e3' (2023-01-13) |
||
---|---|---|
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 |