No description
Erwin Boskma
dcb9a76194
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/b09eb605e376c9e95c87c0ef3fcb8008e11c8368?narHash=sha256-L2h46/z8WExNvtCEdZ8YuMu5TwfAGsKXXgM7pyIShvs%3D' (2024-08-26) → 'github:nix-community/disko/b89a61129f3976d6440e2356ac5d3e30930f7012?narHash=sha256-K%2BHQbC2/hnGngIB019mX6f4XUrf7dB1eBfiUHW4Vx48%3D' (2024-08-27) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/e3e088ef4b4b187a54445f5767047a8257893093?narHash=sha256-L/g0Lcmr8gcmR3zvWf7ZyOPHKW0R6DMUSuKlU8CZw/w%3D' (2024-08-26) → 'github:nix-community/emacs-overlay/6c5563a26bd1369d05f0d9da0d0348ca9f41a643?narHash=sha256-eoW3oPT6jkS%2BkgcL5HgPigflWu/l57MhGlztR6ThFGc%3D' (2024-08-28) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/797f7dc49e0bc7fab4b57c021cdf68f595e47841?narHash=sha256-Qb9MhKBUTCfWg/wqqaxt89Xfi6qTD3XpTzQ9eXi3JmE%3D' (2024-08-22) → 'github:NixOS/nixpkgs/2527da1ef492c495d5391f3bcf9c1dd9f4514e32?narHash=sha256-XROVLf9ti4rrNCFLr%2BDmXRZtPjCQTW4cYy59owTEmxk%3D' (2024-08-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c374d94f1536013ca8e92341b540eba4c22f9c62?narHash=sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh%2BaRKoCdaAv5fiO0%3D' (2024-08-21) → 'github:nixos/nixpkgs/d0e1602ddde669d5beb01aec49d71a51937ed7be?narHash=sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te%2BE/FTw%3D' (2024-08-24) • Updated input 'pre-commit-hooks': 'github:cachix/git-hooks.nix/c8a54057aae480c56e28ef3e14e4960628ac495b?narHash=sha256-9etXEOUtzeMgqg1u0wp%2BEdwG7RpmrAZ2yX516bMj2aE%3D' (2024-08-23) → 'github:cachix/git-hooks.nix/1cd12de659fab215624c630c37d1c62aa2b7824e?narHash=sha256-SzBtZs5z%2BYGM50oyt67R78qLhxG/wG5/SlVRsCF5kRc%3D' (2024-08-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/19b70f147b9c67a759e35824b241f1ed92e46694?narHash=sha256-ap2jIQi/FuUHR6HCht6ASWhoz8EiB99XmI8Esot38VE%3D' (2024-08-26) → 'github:oxalica/rust-overlay/6a1c4915dca7149e7258d8c7f3ac634d8c65f6c6?narHash=sha256-PvhVgQ1rm3gfhK7ts4emprhh/KMkFwXogmgsQ3srR7g%3D' (2024-08-28) |
||
---|---|---|
.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 |