No description
Erwin Boskma
71ef25a4eb
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/e9875b969086a53dff5ec4677575ad3156fc875d?narHash=sha256-kFzpfZcInLhBFWHy452NlvFuzNr0BDEkz3w9Sgg2ypo%3D' (2024-03-20) → 'github:nix-community/disko/a8c966ee117c278a5aabc6f00b00ef62eb7e28f6?narHash=sha256-pvjqjx4L2Hx/NP3RWcwLjk%2BABtMODAJ9%2BrgreU6fP6I%3D' (2024-03-21) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/a9216f7a1ec216e36e31c7d2ed42de4df89d918a?narHash=sha256-IbidJZykfjyGZ9totyhUIPHcDSqW1B3Pepgo3c9tDHI%3D' (2024-03-20) → 'github:nix-community/emacs-overlay/cad98a253dc7b22fb12db42ccac3d04402e63dd0?narHash=sha256-9SmpbzwNL5m3pIqWrT%2B7PnQDfYBQAp8EoKcJCFyRITI%3D' (2024-03-22) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/fa9f817df522ac294016af3d40ccff82f5fd3a63?narHash=sha256-RLvwdQSENKOaLdKhNie8XqHmTXzNm00/M/THj6zplQo%3D' (2024-03-19) → 'github:NixOS/nixpkgs/f091af045dff8347d66d186a62d42aceff159456?narHash=sha256-FOOBJ3DQenLpTNdxMHR2CpGZmYuctb92gF0lpiirZ30%3D' (2024-03-20) • Updated input 'home-manager': 'github:nix-community/home-manager/022464438a85450abb23d93b91aa82e0addd71fb?narHash=sha256-2bNMraoRB4pdw/HtxgYTFeMhEekBZeQ53/a8xkqpbZc%3D' (2024-03-19) → 'github:nix-community/home-manager/1c2acec99933f9835cc7ad47e35303de92d923a4?narHash=sha256-jZpdsypecYTOO9l12Vy77otGmh9uz8tGzcguifA30Vs%3D' (2024-03-20) • Updated input 'microvm': 'github:astro/microvm.nix/0e2223d8fd459725850bd9aff7e9d68ec329769a?narHash=sha256-yqGeSnAB3Yeg02jtitzSGIuE21kq7%2BpWAdeGK3F9/cY%3D' (2024-03-18) → 'github:astro/microvm.nix/d5283b0c83df3475ca967aa1ca9496d3e387084a?narHash=sha256-4Uya0uqALYubEvHcqYY/3x%2BMaM%2Bop0x0djGhj%2BTh6Mk%3D' (2024-03-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/549f4db17b5c0c143b1308fcfe9620129c387472?narHash=sha256-PcHmHQvKIOdvAxlqxZ/DPmUMhUUvfp16pRtyW148u/0%3D' (2024-03-20) → 'github:oxalica/rust-overlay/eec55ba9fcde6be4c63942827247e42afef7fafe?narHash=sha256-PpNb4xq7U5Q/DdX40qe7CijUsqhVVM3VZrhN0%2Bc6Lcw%3D' (2024-03-22) |
||
---|---|---|
.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 |