No description
Erwin Boskma
15cabc0855
• Updated input 'disko': 'github:nix-community/disko/774ce7df25538bd73a8d456e0828907fa6b62572' (2023-07-19) → 'github:nix-community/disko/713eb78002e69bd77f5a69595756fd2e564233f3' (2023-07-23) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/93c4fa53dcc26ea00672995deba057f59850d76a' (2023-07-20) → 'github:nix-community/emacs-overlay/9855d7f268dffa9643f9bc3eaabb7957f4a3c476' (2023-07-24) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/08700de174bc6235043cb4263b643b721d936bdb' (2023-07-18) → 'github:NixOS/nixpkgs/6da4bc6cb07cba1b8e53d139cbf1d2fb8061d967' (2023-07-21) • Updated input 'home-manager': 'github:nix-community/home-manager/0cb3ac57fca6b52c42e4c0f560185540ae1dfb6c' (2023-07-19) → 'github:nix-community/home-manager/d309a62ee81faec56dd31a263a0184b0e3227e36' (2023-07-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/d4ea64f2063820120c05f6ba93ee02e6d4671d6b' (2023-07-14) → 'github:NixOS/nixos-hardware/ba9650b14e83b365fb9e731f7d7c803f22d2aecf' (2023-07-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/684c17c429c42515bafb3ad775d2a710947f3d67' (2023-07-18) → 'github:nixos/nixpkgs/12303c652b881435065a98729eb7278313041e49' (2023-07-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/587d457313ed6c163be839c03a7eb4db0f52735b' (2023-07-20) → 'github:oxalica/rust-overlay/317c523c09218f27f1da1ec0d06bbd2cbc0c1939' (2023-07-24) • Updated input 'sops': 'github:Mic92/sops-nix/bd695cc4d0a5e1bead703cc1bec5fa3094820a81' (2023-07-16) → 'github:Mic92/sops-nix/c36df4fe4bf4bb87759b1891cab21e7a05219500' (2023-07-24) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/13231eccfa1da771afa5c0807fdd73e05a1ec4e6' (2023-07-16) → 'github:NixOS/nixpkgs/ce45b591975d070044ca24e3003c830d26fea1c8' (2023-07-22) |
||
---|---|---|
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 |