No description
Erwin Boskma
bfcd44f9db
• Updated input 'disko': 'github:nix-community/disko/241c878d4b542fea7c61ed4421e9224af054ff56' (2023-08-11) → 'github:nix-community/disko/6388d2859c91adab847b4922b726f61920074494' (2023-08-14) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c13ae6eb68176037cc5acb03288262b69f331b03' (2023-08-11) → 'github:nix-community/emacs-overlay/7a4b5bbc06182e2f704630cd77a614ab0d9c2f2e' (2023-08-14) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/9034b46dc4c7596a87ab837bb8a07ef2d887e8c7' (2023-08-09) → 'github:NixOS/nixpkgs/720e61ed8de116eec48d6baea1d54469b536b985' (2023-08-13) • Updated input 'home-manager': 'github:nix-community/home-manager/6e1eff9aac0e8d84bda7f2d60ba6108eea9b7e79' (2023-08-10) → 'github:nix-community/home-manager/da6874e8bb82204323b94154585a1471c739f73e' (2023-08-14) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/f61352cf8066ddd3dfe9058e62184bae7382672d' (2023-08-11) → 'github:NixOS/nixos-hardware/430a56dd16fe583a812b2df44dca002acab2f4f6' (2023-08-12) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e' (2023-08-10) → 'github:nixos/nixpkgs/100a1550b0e7a64b960c625b656f9229bdef5f87' (2023-08-13) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ac9d8b2e9acc153145e6fa3c78f9ba458ae517bf' (2023-08-11) → 'github:oxalica/rust-overlay/ce646c4052c4979078a1ed263bc6e8c1a14c0d07' (2023-08-14) • Updated input 'sops': 'github:Mic92/sops-nix/c36df4fe4bf4bb87759b1891cab21e7a05219500' (2023-07-24) → 'github:Mic92/sops-nix/32603de0dc988d60a7b80774dd7aed1083cd9629' (2023-08-13) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/ce45b591975d070044ca24e3003c830d26fea1c8' (2023-07-22) → 'github:NixOS/nixpkgs/efeed708ece1a9f4ae0506ae4a4d7da264a74102' (2023-08-12) |
||
---|---|---|
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 |