No description
Erwin Boskma
acb1977c7f
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/3cf52990e4a8d0e854f5a0ed8f04ffa782b92f17?narHash=sha256-lrmxE8AzY3%2BI%2BlnkLiFjGV1A4P/F2zhTlJsiOx1dsHw%3D' (2024-07-23) → 'github:atuinsh/atuin/c32bbcc7edc2cf99da52b1407c90238bc781a804?narHash=sha256-jx%2BxuNZ/8azfFYMlZyYa6e%2BOiTlf%2B4GVYtbfv1%2BTows%3D' (2024-07-25) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/6ad922f8168b6b6aa8c5894dbbcc82840758aea5?narHash=sha256-GXx%2BviSegNL3HH2oUVh5DJE/JhK38GCJjKmTIj4aF0c%3D' (2024-07-25) → 'github:nix-community/emacs-overlay/24c391d8fe03854d1eedea66c241b176e97f5f6c?narHash=sha256-EGeUu2Veg2p4fiGZ%2B22kNSpucrYxZn6NTdXVS989GGk%3D' (2024-07-26) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/575f3027caa1e291d24f1e9fb0e3a19c2f26d96b?narHash=sha256-nw/BnNzATDPfzpJVTnY8mcSKKsz6BJMEFRkJ332QSN0%3D' (2024-07-22) → 'github:NixOS/nixpkgs/d0907b75146a0ccc1ec0d6c3db287ec287588ef6?narHash=sha256-PhmkdTJs2SfqKzSyDB74rDKp1MH4mGk0pG/%2BWqrnGEw%3D' (2024-07-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/a7432ebaefc9a400dcda399d48b949230378d784?narHash=sha256-apTv16L9h5ONS2VTPbKEgwAOVmWGku0MsfprjgwBFHo%3D' (2024-07-24) → 'github:NixOS/nixos-hardware/d3c993c851ad40bbab7e08d566138ff72cd8744f?narHash=sha256-5OrkPJsiZmNe99C6%2BKX0qx9sphoVLvldFjuqDYAZ8GQ%3D' (2024-07-25) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/68c9ed8bbed9dfce253cc91560bf9043297ef2fe?narHash=sha256-Tybxt65eyOARf285hMHIJ2uul8SULjFZbT9ZaEeUnP8%3D' (2024-07-21) → 'github:nixos/nixpkgs/5ad6a14c6bf098e98800b091668718c336effc95?narHash=sha256-Sb1jlyRO%2BN8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M%3D' (2024-07-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/33a7853f54f1797b029739297c4593bd96077c20?narHash=sha256-HyFmp6rktJQMxG%2BBZEjcQoCFKMek855Cc/dQk2YDac0%3D' (2024-07-25) → 'github:oxalica/rust-overlay/9cbf831c5b20a53354fc12758abd05966f9f1699?narHash=sha256-o21ax%2B745ETGXrcgc/yUuLw1SI77ymp3xEpJt%2Bw/kks%3D' (2024-07-26) |
||
---|---|---|
.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 |