No description
Erwin Boskma
90ea61ed1d
Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/bea72d75b6165dfb529ba0c39cc6c7e9c7f0d234?narHash=sha256-IdM%2BpZ6BnmD3o1fTJZ2BD43k7dwi1BbVfLDLpM1nE5s%3D' (2024-09-02) → 'github:zhaofengli/attic/aec90814a4ecbc40171d57eeef97c5cab4aaa7b4?narHash=sha256-nVWCR86XDjx9Tq6RHsNvhD03nNzIeKKc7UTPnXLyrDY%3D' (2024-09-08) • Removed input 'attic/flake-utils' • Removed input 'attic/flake-utils/systems' • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c30396aea8788285d904c765682411267c28dba1?narHash=sha256-v3k9orb6E7vf/zE3t2GX7zS1IM1ePc9fNUYpJwQFikc%3D' (2024-09-07) → 'github:nix-community/emacs-overlay/bf4ae226fc2ca4d264fe4688004ffc1d00d2e7d8?narHash=sha256-pZbXVN8cqvlnI1qPMtiVvd/nAxrRWX3SGXMV2/iBRR8%3D' (2024-09-10) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/6f6c45b5134a8ee2e465164811e451dcb5ad86e3?narHash=sha256-tiN5Rlg/jiY0tyky%2BsoJZoRzLKbPyIdlQ77xVgREDNM%3D' (2024-09-03) → 'github:NixOS/nixpkgs/f4c846aee8e1e29062aa8514d5e0ab270f4ec2f9?narHash=sha256-L64N1rpLlXdc94H%2BF6scnrbuEu%2ButC03cDDVvvJGOME%3D' (2024-09-08) • Updated input 'home-manager': 'github:nix-community/home-manager/aaebdea769a5c10f1c6e50ebdf5924c1a13f0cda?narHash=sha256-%2BHsjshXpqNiJHLaJaK0JnIicJ/a1NquKcfn4YZ3ILgg%3D' (2024-09-07) → 'github:nix-community/home-manager/e5fa72bad0c6f533e8d558182529ee2acc9454fe?narHash=sha256-4QOPemDQ9VRLQaAdWuvdDBhh%2BlEUOAnSMHhdr4nS1mk%3D' (2024-09-10) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/880be1ab837e1e9fe0449dae41ac4d034694d4ce?narHash=sha256-ahej1VRqKmWbG7gewty%2BGlrSBEeGY/J2Zy8Nt8%2B3fdg%3D' (2024-09-04) → 'github:NixOS/nixos-hardware/166dee4f88a7e3ba1b7a243edb1aca822f00680e?narHash=sha256-5RLEnou1/GJQl%2BWd%2BBxaj7QY7FFQ9wjnFq1VNEaxTmc%3D' (2024-09-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/8cc45e678e914a16c8e224c3237fb07cf21e5e54?narHash=sha256-hXW3csqePOcF2e/PYnpXj72KEYyNj2HzTrVNmS/F7Ug%3D' (2024-09-07) → 'github:oxalica/rust-overlay/c3c175c74cd0e8c2c40a0e22bc6e3005c4d28d64?narHash=sha256-mVtTVQMlXkydSXVwFClE0ckxHrOQ9nb2DrCjNwW5pUE%3D' (2024-09-10) • Updated input 'sops': 'github:Mic92/sops-nix/d9d781523a1463965cd1e1333a306e70d9feff07?narHash=sha256-htc9rsTMSAY5ek%2BDB3tpntdD/es0eam2hJgO92bWSys%3D' (2024-09-05) → 'github:Mic92/sops-nix/cede1a08039178ac12957733e97ab1006c6b6892?narHash=sha256-ruvh8tlEflRPifs5tlpa0gkttzq4UtgXkJQS7FusgFE%3D' (2024-09-09) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/556533a23879fc7e5f98dd2e0b31a6911a213171?narHash=sha256-5NctRsoE54N86nWd0psae70YSLfrOek3Kv1e8KoXe/0%3D' (2024-07-21) → 'github:NixOS/nixpkgs/dc454045f5b5d814e5862a6d057e7bb5c29edc05?narHash=sha256-vNv%2BaJUW5/YurRy1ocfvs4q/48yVESwlC/yHzjkZSP8%3D' (2024-09-08) |
||
---|---|---|
.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 |