No description
Erwin Boskma
d596078372
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/fc5522f45ef0735fb3b492329f95770203d21a7f?narHash=sha256-QfWxEMZwwzXtOic6eiUQI4fuUiuXP9dsSWrCf8r0/x8%3D' (2024-04-25) → 'github:atuinsh/atuin/36ddd98b6ef86af9b00d93d28476900b07be34ac?narHash=sha256-o3MQNItFgGrpAoBpDwJIeHkIxTPQT9QR6AcGTeeIkK4%3D' (2024-04-26) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/40463aaa81fc44a2908716ca79d29c16c5fef81b?narHash=sha256-mXwE5H5JJxi1c2c8nwjiyMRGy9UYgNPSJ2caJDxbGgk%3D' (2024-04-26) → 'github:nix-community/emacs-overlay/175801574b4bafe2ce03d6d0ae0e69b47e3ac805?narHash=sha256-XV%2Bai9ezP2d%2BUa3p%2BNF5ulYBZuv3i9KZCHr9Y2mh1lc%3D' (2024-04-29) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/dd37924974b9202f8226ed5d74a252a9785aedf8?narHash=sha256-fFE3M0vCoiSwCX02z8VF58jXFRj9enYUSTqjyHAjrds%3D' (2024-04-24) → 'github:NixOS/nixpkgs/12430e43bd9b81a6b4e79e64f87c624ade701eaf?narHash=sha256-3/ghIWCve93ngkx5eNPdHIKJP/pMzSr5Wc4rNKE1wOc%3D' (2024-04-28) • Updated input 'home-manager': 'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db?narHash=sha256-4AItZA3EQIiSNAxliuYEJumw/LaVfrMv84gYyrs0r3U%3D' (2024-04-25) → 'github:nix-community/home-manager/9fe79591c1005ce6f93084ae7f7dab0a2891440d?narHash=sha256-OzD1P0o46uD3Ix4ZI/g9z3YAeg%2B4g%2BW3qctB6bNOReo%3D' (2024-04-28) • Updated input 'nix-ld-rs': 'github:nix-community/nix-ld-rs/c4f56b515ed0bf8c2cd4d6a13224067017a6dc39?narHash=sha256-8LBvfDbnuPMrF43bmejUZwD9TuP081iuG1nLl8m0jM4%3D' (2024-04-20) → 'github:nix-community/nix-ld-rs/d5939e6da59ea8a55b47ea48ce212f602a4fa59b?narHash=sha256-%2B9BSaBDbz3N65KgFhyJLXsIazYmpA4CUVcL4u29BIC0%3D' (2024-04-27) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/797f8d8082c7cc3259cba7275c699d4991b09ecc?narHash=sha256-/BPDMJEkrsFAFOsQWhwm31wezlgshPFlLBn34KEUdVA%3D' (2024-04-23) → 'github:NixOS/nixos-hardware/53db5e1070d07e750030bf65f1b9963df8f0c678?narHash=sha256-nk0W4rH7xYdDeS7k1SqqNtBaNrcgIBYNmOVc8P2puEY%3D' (2024-04-27) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856?narHash=sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY%3D' (2024-04-25) → 'github:nixos/nixpkgs/58a1abdbae3217ca6b702f03d3b35125d88a2994?narHash=sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc%3D' (2024-04-27) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/2a42c742ab04b61d9b2f1edf392842cf9f27ebfd?narHash=sha256-044xbpBszupqN3nl/CGOCJtTQ4O6Aca81mJpX45i8/I%3D' (2024-04-26) → 'github:oxalica/rust-overlay/d9b44509b4064f0a3fc9c7c92a603861f52fbedc?narHash=sha256-W6Mss7AG6bnFT1BqRApHXvLXBrFOu7V0%2BEUe9iML30s%3D' (2024-04-29) |
||
---|---|---|
.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 |