No description
Erwin Boskma
8358aecb87
Flake lock file updates: • Updated input 'atuin': 'github:atuinsh/atuin/0ab9f4d9ff545d83dc664b494ecf450750c0f184?narHash=sha256-tcGPDWrfUuo3d5OpXyg9veJeYIatzFLRjcZSp%2B0SFxI%3D' (2024-04-09) → 'github:atuinsh/atuin/0da8d34425ef83395759db79377025c062a69911?narHash=sha256-VHP7ESpUHb5STZfbZyMDGz9g%2BxsgGdJGa8iX4rkFYz8%3D' (2024-04-10) • Updated input 'disko': 'github:nix-community/disko/79eab0e82cb126bf4ac170f44af82479f0895ab5?narHash=sha256-Tv4C8OSPVmm4LbpJGLFSODyvJy6DqrisEGPCQdNVOeY%3D' (2024-04-08) → 'github:nix-community/disko/a297cb1cb0337ee10a7a0f9517954501d8f6f74d?narHash=sha256-aAksVB7zMfBQTz0q2Lw3o78HM3Bg2FRziX2D6qnh%2Bsk%3D' (2024-04-11) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/d08457d425b0a1f15f44f6d9faa17240f2bd29a6?narHash=sha256-y703Dcj6RS51iO5xFDorkyIGZD8/hQDkwaHJsB6uI80%3D' (2024-04-10) → 'github:nix-community/emacs-overlay/9b79fd139ff55062e46191bd5dd42fcb79696328?narHash=sha256-mEL4y1N/aQrI%2BOeYHm6Sol8lpDVsceCc2TJF8%2BuMv6Y%3D' (2024-04-11) • Updated input 'home-manager': 'github:nix-community/home-manager/b00d0e4fe9cba0047f54e77418ddda5f17e6ef2c?narHash=sha256-NrVLXkpT9ZigiI8md6NIzHS%2B3lE4QTj30IgXG57O9iM%3D' (2024-04-09) → 'github:nix-community/home-manager/31357486b0ef6f4e161e002b6893eeb4fafc3ca9?narHash=sha256-2APpO3ZW4idlgtlb8hB04u/rmIcKA8O7pYqxF66xbNY%3D' (2024-04-10) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/05aa46a1f3b5ac92bfe84807868ba9670d48b031?narHash=sha256-rXb3onsPMiv00FrGSpIJyYa8x53W0dlbJ5Ka3xvje/c%3D' (2024-04-09) → 'github:NixOS/nixos-hardware/e1c4bac14beb8c409d0534382cf967171706b9d9?narHash=sha256-4zhaEW1nB%2BnGbCNMjOggWeY5nXs/H0Y71q0%2Bh%2BjdxoU%3D' (2024-04-10) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/9ef1eca23bee5fb8080863909af3802130b2ee57?narHash=sha256-uOx7GaLV%2B5hekAYtm/CBr627Pi7%2Bd1Yh70hwKmVjYYo%3D' (2024-04-10) → 'github:oxalica/rust-overlay/35ebec41fcdeeae8e012e7d62ba153a13645227f?narHash=sha256-KZJnVw3TdfDyUhvClzgy3IEoC9tRhvG0yM%2BlHfqAm34%3D' (2024-04-11) |
||
---|---|---|
.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 |