No description
Erwin Boskma
9c66434d6f
Flake lock file updates: • Updated input 'ghostty': 'github:ghostty-org/ghostty/69dcea5148ecf40bec2f46174478245e73325acb?narHash=sha256-sOy%2BhFQtxAIa0VWyJoQfEC5K5T3KqZOu2PdoxBgyXqE%3D' (2025-01-24) → 'github:ghostty-org/ghostty/71e62f96fa4d286eda835048428d5be96e9f87c1?narHash=sha256-%2BiVqQXAUJshUYgxOHfke54Ux4f/aggl1yub86KNx2tE%3D' (2025-01-25) • Updated input 'home-manager': 'github:nix-community/home-manager/a0428685572b134f6594e7d7f5db5e1febbab2d7?narHash=sha256-zta8jvOQ2wRCZmiwFEnS5iCulWAh8e%2BfLUlQxrgOBjM%3D' (2025-01-24) → 'github:nix-community/home-manager/daf04c5950b676f47a794300657f1d3d14c1a120?narHash=sha256-5HGG09bh/Yx0JA8wtBMAzt0HMCL1bYZ93x4IqzVExio%3D' (2025-01-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/9368027715d8dde4b84c79c374948b5306fdd2db?narHash=sha256-qM/y6Dtpu9Wmf5HqeZajQdn%2BcS0aljdYQQQnrvx%2BLJE%3D' (2025-01-23) → 'github:NixOS/nixos-hardware/dfad538f751a5aa5d4436d9781ab27a6128ec9d4?narHash=sha256-ZEbOJ9iT72iwqXsiEMbEa8wWjyFvRA9Ugx8utmYbpz4%3D' (2025-01-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0aa475546ed21629c4f5bbf90e38c846a99ec9e9?narHash=sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ%2BNH28%3D' (2025-01-23) → 'github:nixos/nixpkgs/825479c345a7f806485b7f00dbe3abb50641b083?narHash=sha256-nU6AezEX4EuahTO1YopzueAXfjFfmCHylYEFCagduHU%3D' (2025-01-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/eb64cbcc8eee0fa87ebded92805280d2ec97415a?narHash=sha256-p%2BNVABRpGi%2BpT%2Bxxf9HcLcFVxG6L%2BvEEy%2BNwzB9T0f8%3D' (2025-01-24) → 'github:oxalica/rust-overlay/dd236609a6c272d00ceaa042b1a81a31968e7f4d?narHash=sha256-rohhmT/b8QNaIL3nY01jFtCyZu2dGTufef5YieECWZM%3D' (2025-01-26) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
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 |