No description
Erwin Boskma
b9cdabb4d7
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/4d5d07d37ff773338e40a92088f45f4f88e509c8?narHash=sha256-9Sy17XguKdEU9M5peTrkWSlI/O5IAqjHzdzxbXnc30g%3D' (2025-01-09) → 'github:nix-community/disko/f720e64ec37fa16ebba6354eadf310f81555cc07?narHash=sha256-8hKhPQuMtXfJi%2B4lPvw3FBk/zSJVHeb726Zo0uF1PP8%3D' (2025-01-12) • Updated input 'ghostty': 'github:ghostty-org/ghostty/6ef757a8f85db7a124d370378850339a899c9e65?narHash=sha256-TsDbQIHOi84hTjb0SSLSyX27P1MA1DVLagX8uik%2BWGk%3D' (2025-01-09) → 'github:ghostty-org/ghostty/132c4f1f68d75813370cadfc090f96a32be19705?narHash=sha256-0O%2Bw/MYI7xC4h1MmNg8rPVUIGPIIZYv%2BVq0ZAY%2BMnW4%3D' (2025-01-13) • Updated input 'home-manager': 'github:nix-community/home-manager/d4aebb947a301b8da8654a804979a738c5c5da50?narHash=sha256-RyrX0WFXxFrYvzHNLTIyuk3NcNl3UBykuYru/P0zW5E%3D' (2025-01-09) → 'github:nix-community/home-manager/fc52a210b60f2f52c74eac41a8647c1573d2071d?narHash=sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m%2BYq%2B%2BC9AyE%3D' (2025-01-13) • Updated input 'microvm': 'github:astro/microvm.nix/3394c37bc8105c54f45b2b5395428a09647c1f57?narHash=sha256-oNIfJUvQFhFKmNp7MfKw0IghOoKBLBgPPrVolN2M18A%3D' (2025-01-09) → 'github:astro/microvm.nix/6f7e4a7bfcdce1c703f9cb89ae9d634167b720b8?narHash=sha256-kZELEfQDEbCljZUpmIw0G0tNNdcJlnLvc6bwKQ%2B%2BOkw%3D' (2025-01-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/bffc22eb12172e6db3c5dde9e3e5628f8e3e7912?narHash=sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc%2Bc2c%3D' (2025-01-08) → 'github:nixos/nixpkgs/ed4a395ea001367c1f13d34b1e01aa10290f67d6?narHash=sha256-jG/%2BMvjVY7SlTakzZ2fJ5dC3V1PrKKrUEOEE30jrOKA%3D' (2025-01-12) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/de30cc5963da22e9742bbbbb9a3344570ed237b9?narHash=sha256-%2Bqyv3QqdZCdZ3cSO/cbpEY6tntyYjfe1bB12mdpNFaY%3D' (2025-01-10) → 'github:oxalica/rust-overlay/cf960a1938ee91200fe0d2f7b2582fde2429d562?narHash=sha256-QOA4jCDyyUM9Y2Vba%2BHSZ/5LdtCMGaTE/7NkkUzBr50%3D' (2025-01-13) • Updated input 'sops': 'github:Mic92/sops-nix/c9c88f08e3ee495e888b8d7c8624a0b2519cb773?narHash=sha256-eSjkBwBdQk%2BTZWFlLbclF2rAh4JxbGg8az4w/Lfe7f4%3D' (2025-01-06) → 'github:Mic92/sops-nix/0f4744b5a95151a85c4f35010dd2d748228f7f53?narHash=sha256-eON7amRmBl59QH6K9uypewkKveaNbosY6CtUgRcv7YU%3D' (2025-01-13) |
||
---|---|---|
.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 |