No description
Erwin Boskma
3b9f261f8e
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/036d480ae895afff54da5034331950827a7f317a' (2024-01-14) → 'github:nix-community/disko/d0b4408eaf782a1ada0a9133bb1cecefdd59c696' (2024-01-15) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9fa1fdb259360c2d7b45bb3f4003a83b5f9f809e' (2024-01-14) → 'github:nix-community/emacs-overlay/bd632887992dea09e08244c2f7c632c3590ab9dc' (2024-01-16) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/428544ae95eec077c7f823b422afae5f174dee4b' (2024-01-13) → 'github:NixOS/nixpkgs/b8dd8be3c790215716e7c12b247f45ca525867e2' (2024-01-15) • Updated input 'flake-utils': 'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04) → 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15) • Updated input 'home-manager': 'github:nix-community/home-manager/f2942f3385f1b35cc8a1abb03a45e29c9cb4d3c8' (2024-01-13) → 'github:nix-community/home-manager/fa152fd745b816dcfc751962f2e20c8669aed8f1' (2024-01-16) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ef811636cc847355688804593282078bac7758d4' (2024-01-13) → 'github:NixOS/nixos-hardware/bee2202bec57e521e3bd8acd526884b9767d7fa0' (2024-01-15) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/71d1d01578272b2294f6993b1860dfb22e4baac3' (2024-01-14) → 'github:oxalica/rust-overlay/b21f3c0d5bf0f0179f5f0140e8e0cd099618bd04' (2024-01-16) • Updated input 'sops': 'github:Mic92/sops-nix/70dd0d521f7849338e487a219c1a07c429a66d77' (2024-01-14) → 'github:Mic92/sops-nix/87755331580fdf23df7e39b46d63ac88236bf42c' (2024-01-15) |
||
---|---|---|
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 |