No description
Erwin Boskma
9d1d78d277
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/55840bddf5caec1137380f70ef9c9b556fd483e6?narHash=sha256-tpPlzCNSTloLoG7YrRWfyIpq1VYLs7iG0o/tJDhQFZ4%3D' (2024-06-17) → 'github:atuinsh/atuin/88633b8994437180afdd66068cc2c8f02aea1db1?narHash=sha256-TsRI1Ej7gkAWhUhT3vDa4aEhu20AX8KbbUM2iD%2B6gkw%3D' (2024-06-17) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/6439e136f3e93e21040f0e8483ed7744056b9d71?narHash=sha256-TAOe9upAJ8I9Yc5Z69M/w%2BbHlWq98ht%2BXBD2nlEyIDw%3D' (2024-06-17) → 'github:nix-community/emacs-overlay/27e6ef6f477ba42dc8682ed854a519cbea4bacaf?narHash=sha256-ALCQMCzcZuumVF/PaxW0xShwm72U5/2Zk/HHWwZrqlQ%3D' (2024-06-18) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/5c2ec3a5c2ee9909904f860dadc19bc12cd9cc44?narHash=sha256-ZFav8A9zPNfjZg/wrxh1uZeMJHELRfRgFP%2Bmeq01XYk%3D' (2024-06-12) → 'github:NixOS/nixpkgs/842253bf992c3a7157b67600c2857193f126563a?narHash=sha256-JHuXsrC9pr4kA4n7LuuPfWFJUVlDBVJ1TXDVpHEuUgM%3D' (2024-06-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e9ee548d90ff586a6471b4ae80ae9cfcbceb3420?narHash=sha256-4Zu0RYRcAY/VWuu6awwq4opuiD//ahpc2aFHg2CWqFY%3D' (2024-06-13) → 'github:nixos/nixpkgs/b60ebf54c15553b393d144357375ea956f89e9a9?narHash=sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU%3D' (2024-06-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/5265b8a1e1d2e370e8b45b557326b691aec7d163?narHash=sha256-92OO8XrQTvdvDtRi0BAkjTaoZXW5ORuvqdk677wW7ko%3D' (2024-06-17) → 'github:oxalica/rust-overlay/16c8ad83297c278eebe740dea5491c1708960dd1?narHash=sha256-E/T7Ge6ayEQe7FVKMJqDBoHyLhRhjc6u9CmU8MyYfy0%3D' (2024-06-18) • Removed input 'rust-overlay/flake-utils' |
||
---|---|---|
.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 | ||
krops.nix | ||
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 |