No description
Erwin Boskma
d25df2c972
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/e4dba0bd01956170667458be7b45f68170a63651' (2023-12-17) → 'github:nix-community/home-manager/e8aaced73ebaf6bfa8e3c6ab0a19cb184bc4d798' (2023-12-18) • Updated input 'microvm': 'github:astro/microvm.nix/67d28f368ee387bc9e4cfbf89780ccc31643bbed' (2023-12-15) → 'github:astro/microvm.nix/7e429619284c64c128108a7e1e8cf0a5d334118d' (2023-12-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/a9bf124c46ef298113270b1f84a164865987a91c' (2023-12-11) → 'github:nixos/nixpkgs/91a00709aebb3602f172a0bf47ba1ef013e34835' (2023-12-17) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b2aafcee4a8842cecfc877ff7dd271f333dc0fa8' (2023-12-18) → 'github:oxalica/rust-overlay/20fd62b0891707a1db8117d09fc3e65a1cd0f6d7' (2023-12-19) • Updated input 'sops': 'github:Mic92/sops-nix/21f2b8f123a1601fef3cf6bbbdf5171257290a77' (2023-12-17) → 'github:Mic92/sops-nix/f7db64b88dabc95e4f7bee20455f418e7ab805d4' (2023-12-18) |
||
---|---|---|
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 |