No description
Erwin Boskma
26c140120b
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/16481a0121af8d3024c4cdd74fc40ff521392479' (2023-02-28) → 'github:nix-community/emacs-overlay/545383bd7de8e3f100356fea217698379d8f5c31' (2023-02-28) • Updated input 'home-manager': 'github:nix-community/home-manager/305daba44a9df57738cffc67c08129005a25579a' (2023-02-27) → 'github:nix-community/home-manager/ef7d316578367ed7732a21eede6c79546a36124f' (2023-02-28) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/49f423aa8f9b6e063c7806098a9b6b43a7978c02' (2023-02-27) → 'github:Hyprwm/Hyprland/52878161e4bbe77ba9e73c44bab03d16356e36f7' (2023-03-01) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/dcbf93d500c54cfee7a7c854c4669d404236a821' (2023-02-28) → 'github:NixOS/nixos-hardware/77de4cd09db4dbee9551ed2853cfcf113d7dc5ce' (2023-02-28) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/c1df023b1aaded1b65a1f4ad604a98a58ab4db97' (2023-02-28) → 'github:oxalica/rust-overlay/f388187efb41ce4195b2f4de0b6bb463d3cd0a76' (2023-03-01) • Updated input 'sops': 'github:Mic92/sops-nix/898fc4a434ebde01f2a8c7d0184bad872ea6b41c' (2023-02-28) → 'github:Mic92/sops-nix/27018a9084006b8371b1f833882adfb85bd23004' (2023-02-28) |
||
---|---|---|
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 |