No description
Erwin Boskma
3834b547c3
• Updated input 'pamedia': 'git+https://git.datarift.nl/erwin/pamedia-rs.git?ref=main&rev=7c037fef4cdc5933a70694d8c743b5439c8354ea' (2021-11-24) → 'git+https://git.datarift.nl/erwin/pamedia-rs.git?ref=main&rev=ef2135b690569b15b454dd37384b4e569f6a33a7' (2023-07-03) • Added input 'pamedia/flake-utils': 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25) • Added input 'pamedia/flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Added input 'pamedia/rust-overlay': 'github:oxalica/rust-overlay/f9b92316727af9e6c7fee4a761242f7f46880329' (2023-07-03) • Added input 'pamedia/rust-overlay/flake-utils': follows 'pamedia/flake-utils' • Added input 'pamedia/rust-overlay/nixpkgs': follows 'pamedia/nixpkgs' • Removed input 'pamedia/utils' |
||
---|---|---|
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 |