No description
Erwin Boskma
44b7725e05
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3adba4b7d1db1d4eba3f682a956fcbb5de1bd7a1?narHash=sha256-Jt86dscJ4nsoHFnGRAm4iSgbpD/pifd7Cs4m52CEzwY%3D' (2024-10-19) → 'github:nix-community/emacs-overlay/5d488eec63742aca43fb57a6f805ef282294f3a4?narHash=sha256-GCrI052UegxjdNRKfV6JSrn4pbJb7SsbuEOXCYxfLm4%3D' (2024-10-21) • Updated input 'home-manager': 'github:nix-community/home-manager/122f70545b29ccb922e655b08acfe05bfb44ec68?narHash=sha256-KVyQq%2Bez/oB30/WbdNgVD8g/bda34z8NiU187QKQb74%3D' (2024-10-19) → 'github:nix-community/home-manager/1e27f213d77fc842603628bcf2df6681d7d08f7e?narHash=sha256-gBOVJv%2Bq6Mx8jGvwX7cE6J8%2BsZmi1uxpRVsO7WxvVuQ%3D' (2024-10-20) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/38279034170b1e2929b2be33bdaedbf14a57bfeb?narHash=sha256-NU%2BtYe3QWzDNpB8RagpqR3hNQXn4BNuBd7ZGosMHLL8%3D' (2024-10-19) → 'github:NixOS/nixos-hardware/9fcf30fccf8435f6390efec4a4d38e69c2268a36?narHash=sha256-THqzn/7um3oMHUEGXyq%2B1CJQE7EogwR3HjLMNOlhFBE%3D' (2024-10-20) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b259ef799b5ac014604da71ecd92d4a52603ed2d?narHash=sha256-H7KGGJUU9BcDNnfXiATBGgs6FJKWQdfftNJS%2B/v2aMU%3D' (2024-10-19) → 'github:oxalica/rust-overlay/ada8266712449c4c0e6ee6fcbc442b3c217c79e1?narHash=sha256-r0VyeJxy4O4CgTB/PNtfQft9fPfN1VuGvnZiCxDArvg%3D' (2024-10-21) • Updated input 'sops': 'github:Mic92/sops-nix/06535d0e3d0201e6a8080dd32dbfde339b94f01b?narHash=sha256-lpunY1%2Bbf90ts%2BsA2/FgxVNIegPDKCpEoWwOPu4ITTQ%3D' (2024-10-08) → 'github:Mic92/sops-nix/c504fd7ac946d7a1b17944d73b261ca0a0b226a5?narHash=sha256-fADlzOzcSaGsrO%2BTHUZ8SgckMMc7bMQftztKFCLVcFI%3D' (2024-10-20) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/17ae88b569bb15590549ff478bab6494dde4a907?narHash=sha256-uogSvuAp%2B1BYtdu6UWuObjHqSbBohpyARXDWqgI12Ss%3D' (2024-10-05) → 'github:NixOS/nixpkgs/bb8c2cf7ea0dd2e18a52746b2c3a5b0c73b93c22?narHash=sha256-66RHecx%2BzohbZwJVEPF7uuwHeqf8rykZTMCTqIrOew4%3D' (2024-10-19) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |