No description
Erwin Boskma
4443991e3c
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/ea9cd7c22194345e4db85e334b8ff40cc384c536' (2023-12-08) → 'github:nix-community/emacs-overlay/5075b8df3d8d4d28e73e921acb46a2cf7f34ad28' (2023-12-11) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/e9f06adb793d1cca5384907b3b8a4071d5d7cb19' (2023-12-03) → 'github:NixOS/nixpkgs/0561103cedb11e7554cf34cea81e5f5d578a4753' (2023-12-05) • Updated input 'eww': 'github:elkowar/eww/a9a35c1804d72ef92e04ee71555bd9e5a08fa17e' (2023-08-18) → 'github:elkowar/eww/fff40ce1a78d4d75bf63a8ee33dd7d9be8dc289e' (2023-12-11) • Updated input 'home-manager': 'github:nix-community/home-manager/ac7216918cd65f3824ba7817dea8f22e61221eaf' (2023-12-04) → 'github:nix-community/home-manager/defbb9c5857e157703e8fc7cf3c2ceb01cb95883' (2023-12-10) • Updated input 'microvm': 'github:astro/microvm.nix/89bb7a5230a4820736a43e058c8d2a2c560d672b' (2023-11-28) → 'github:astro/microvm.nix/252d7153e6faab321f012d9a0c6e290f888b8d0f' (2023-12-11) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/fa194fc484fd7270ab324bb985593f71102e84d1' (2023-12-04) → 'github:NixOS/nixos-hardware/030edbb68e69f2b97231479f98a9597024650df2' (2023-12-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2c7f3c0fb7c08a0814627611d9d7d45ab6d75335' (2023-12-04) → 'github:nixos/nixpkgs/666fc80e7b2afb570462423cb0e1cf1a3a34fedd' (2023-12-09) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/e5ee5c5f3844550c01d2131096c7271cec5e9b78' (2023-11-25) → 'github:cachix/pre-commit-hooks.nix/f99ed8523fc3aef67a7c838ca31f4b94ef902837' (2023-12-11) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/c2a1dd067a928624c1aab36f976758c0722c79bd' (2023-12-08) → 'github:oxalica/rust-overlay/d3c43c05ef3cd66ddab4a5a82a7df71e40496aa5' (2023-12-11) • Updated input 'sops': 'github:Mic92/sops-nix/e91ece6d2cf5a0ae729796b8f0dedceab5107c3d' (2023-12-04) → 'github:Mic92/sops-nix/d806e546f96c88cd9f7d91c1c19ebc99ba6277d9' (2023-12-10) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/dc01248a9c946953ad4d438b0a626f5c987a93e4' (2023-12-03) → 'github:NixOS/nixpkgs/b8f33c044e51de6dde3ad80a9676945e0e4e3227' (2023-12-09) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.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 eza 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 |