No description
Erwin Boskma
a32d29a9c8
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/caa979438d279b0daf0e0aee38e5102f5d40ace2?narHash=sha256-vRl/KT12yahy35wMw%2ByEvtSBtwTMZvWNfMMN9vs3w7A%3D' (2024-09-04) → 'github:nix-community/emacs-overlay/302264062ca73851e9306b70daeed6d9f1ae3ff9?narHash=sha256-9HIRqIPSHNMu9dfNrSkmatRtXKxmiddm/VXFvFFhSz4%3D' (2024-09-05) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/6e99f2a27d600612004fbd2c3282d614bfee6421?narHash=sha256-eV%2B63gK0Mp7ygCR0Oy4yIYSNcum2VQwnZamHxYTNi%2BM%3D' (2024-08-30) → 'github:NixOS/nixpkgs/6f6c45b5134a8ee2e465164811e451dcb5ad86e3?narHash=sha256-tiN5Rlg/jiY0tyky%2BsoJZoRzLKbPyIdlQ77xVgREDNM%3D' (2024-09-03) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ba7bb3761c960793001ed153a333e543345f34cf?narHash=sha256-sWfTgSJ3Wq/L7jEZHiU82NaBjpMMmBR1y%2BMSvx88WeE%3D' (2024-09-04) → 'github:NixOS/nixos-hardware/880be1ab837e1e9fe0449dae41ac4d034694d4ce?narHash=sha256-ahej1VRqKmWbG7gewty%2BGlrSBEeGY/J2Zy8Nt8%2B3fdg%3D' (2024-09-04) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/12228ff1752d7b7624a54e9c1af4b222b3c1073b?narHash=sha256-Ym04C5%2BqovuQDYL/rKWSR%2BWESseQBbNAe5DsXNx5trY%3D' (2024-08-31) → 'github:nixos/nixpkgs/ad416d066ca1222956472ab7d0555a6946746a80?narHash=sha256-%2Byj%2BxgsfZaErbfYM3T%2BQvEE2hU7UuE%2BJf0fJCJ8uPS0%3D' (2024-09-04) • Updated input 'pre-commit-hooks': 'github:cachix/git-hooks.nix/4509ca64f1084e73bc7a721b20c669a8d4c5ebe6?narHash=sha256-Qyl9Q4QMTLZnnBb/8OuQ9LSkzWjBU1T5l5zIzTxkkhk%3D' (2024-08-28) → 'github:cachix/git-hooks.nix/7570de7b9b504cfe92025dd1be797bf546f66528?narHash=sha256-tyMUA6NgJSvvQuzB7A1Sf8%2B0XCHyfSPRx/b00o6K0uo%3D' (2024-09-05) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/e5d3f9c2f24d852cddc79716daf0f65ce8468b28?narHash=sha256-iNBv7ILlZI6ubhW0ExYy8YgiLKUerudxY7n8R5UQK2E%3D' (2024-09-04) → 'github:oxalica/rust-overlay/17d3930e54a50df2afe52a2d1d1f506edb262bbe?narHash=sha256-sgIkegun2%2BPwJEDHlvmADhSbxgjVR%2B8pYSMuXmB3/do%3D' (2024-09-05) • Updated input 'sops': 'github:Mic92/sops-nix/5db5921e40ae382d6716dce591ea23b0a39d96f7?narHash=sha256-lj5pxOwidP0W//E7IvyhbhXrnEUW99I07%2BQpERnzTS4%3D' (2024-09-01) → 'github:Mic92/sops-nix/d9d781523a1463965cd1e1333a306e70d9feff07?narHash=sha256-htc9rsTMSAY5ek%2BDB3tpntdD/es0eam2hJgO92bWSys%3D' (2024-09-05) |
||
---|---|---|
.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 |