No description
Erwin Boskma
2319c0dc3a
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/2890a8c922a329468e0fa8cab88b83a87240ff24' (2023-12-24) → 'github:nix-community/disko/1b191113874dee97796749bb21eac3d84735c70a' (2023-12-25) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/28c6b6217ef2b5346ad4fb08365cdb6e116e521a' (2023-12-24) → 'github:nix-community/emacs-overlay/9147a4227e3db2c461dac05f9e0e7c586f852fb9' (2023-12-26) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/312ab59e8ade69e6083017bd9b98a2919f1fb86a' (2023-12-20) → 'github:NixOS/nixpkgs/7790e078f8979a9fcd543f9a47427eeaba38f268' (2023-12-23) • Updated input 'home-manager': 'github:nix-community/home-manager/a2523ea0343b056ba240abbac90ab5f116a7aa7b' (2023-12-23) → 'github:nix-community/home-manager/80679ea5074ab7190c4cce478c600057cfb5edae' (2023-12-25) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/7763c6fd1f299cb9361ff2abf755ed9619ef01d6' (2023-12-13) → 'github:NixOS/nixos-hardware/a15b6e525f5737a47b4ce28445c836996fb2ea8c' (2023-12-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/cb6395cb3c2f69ad028914c90bce833e51d339c9' (2023-12-24) → 'github:oxalica/rust-overlay/f2b937756343365f9b1ba66ec7a1ca489aef745c' (2023-12-25) |
||
---|---|---|
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 |