No description
Erwin Boskma
c3aa4864ac
• Updated input 'disko': 'github:nix-community/disko/4eed2457b053c4bbad7d90d2b3a1d539c2c9009c' (2023-08-16) → 'github:nix-community/disko/00169fe4a6015a88c3799f0bf89689e06a4d4896' (2023-08-28) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/47a747748b3a978425ad7eeec008ef7308e7a92a' (2023-08-24) → 'github:nix-community/emacs-overlay/12332e7a2a2f3899dcca76c752464ca87215dd53' (2023-08-30) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/a16f7eb56e88c8985fcc6eb81dabd6cade4e425a' (2023-08-22) → 'github:NixOS/nixpkgs/c540061ac8d72d6e6d99345bd2d590c82b2f58c1' (2023-08-28) • Updated input 'home-manager': 'github:nix-community/home-manager/6a20e40acaebf067da682661aa67da8b36812606' (2023-08-23) → 'github:nix-community/home-manager/8bde7a651b94ba30bd0baaa9c4a08aae88cc2e92' (2023-08-28) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/7f1836531b126cfcf584e7d7d71bf8758bb58969' (2023-08-18) → 'github:NixOS/nixos-hardware/817e297fc3352fadc15f2c5306909aa9192d7d97' (2023-08-25) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/b85ed9dcbf187b909ef7964774f8847d554fab3b' (2023-08-22) → 'github:nixos/nixpkgs/3efb0f6f404ec8dae31bdb1a9b17705ce0d6986e' (2023-08-28) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/8f6d56270ec028a340583111609b12663f5d7490' (2023-08-24) → 'github:oxalica/rust-overlay/1fb2aa49635e9f30b6fa211ab7c454f7175e1ba3' (2023-08-30) • Updated input 'sops': 'github:Mic92/sops-nix/1b7b3a32d65dbcd69c217d7735fdf0a6b2184f45' (2023-08-22) → 'github:Mic92/sops-nix/c89ee06488706b587a22085b1844bf9ca6ba5687' (2023-08-28) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/5e63e8bbc46bc4fc22254da1edaf42fc7549c18a' (2023-08-20) → 'github:NixOS/nixpkgs/9117c4e9dc117a6cd0319cca40f2349ed333669d' (2023-08-27) |
||
---|---|---|
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 |