No description
Erwin Boskma
62a7cc2dc4
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/51e3a7e51279fedfb6669a00d21dc5936c78a6ce?narHash=sha256-KRGuT5nGRAOT3heigRWg41tbYpTpapGhsWc%2BXjnIx0w%3D' (2024-09-15) → 'github:nix-community/disko/22ee467a54a3ab7fa9d637ccad5330c6c087e9dc?narHash=sha256-xkPPPvfHhHK7BNX5ZrQ9N6AIEixCmFzRZHduDf0zv30%3D' (2024-09-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3723f9e35635612c470db1b0aea08d9ff22b39ec?narHash=sha256-cvgXPCeiDIDrEE8VijX5uZ2GAOHldOJXuKOb95goxUo%3D' (2024-09-16) → 'github:nix-community/emacs-overlay/9d338902d478ffba6a7dd0d9c2fb6151cb4b970a?narHash=sha256-kwjD%2BF08vvRVXCepQ5TD%2BHLCBkwvBF9gfM9ftFX%2Bb0U%3D' (2024-09-17) • Updated input 'nil': 'github:oxalica/nil/4f3081d1f10bb61f197b780e67f426e53f818691?narHash=sha256-rX14joTzvRUiCfmCT0LUMV3Mxi79VJANcKB/kkh7Qys%3D' (2024-08-18) → 'github:oxalica/nil/555d517d46f0901988d752c7bbebccbf66b74f91?narHash=sha256-qEYEgj5Lj8VrrJKW2VSKXWJuHMXgoBmOkA96yt%2BDNXM%3D' (2024-09-16) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/b9ab7e57c5d1d456cdeef252d345f3bca9c55851?narHash=sha256-ikQs0QZGmCfk5cJ2N5nTT6oULMvWgxN6ebk4WsOq9io%3D' (2024-09-16) → 'github:NixOS/nixos-hardware/dc8b0296f68f72f3fe77469c549a6f098555c2e9?narHash=sha256-JBHtN%2Bn1HzKawpnOQAz6jdgvrtYV9c/kyzgoIdguQGo%3D' (2024-09-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/345c263f2f53a3710abe117f28a5cb86d0ba4059?narHash=sha256-sjiGsMh%2B1cWXb53Tecsm4skyFNag33GPbVgCdfj3n9I%3D' (2024-09-13) → 'github:nixos/nixpkgs/99dc8785f6a0adac95f5e2ab05cc2e1bf666d172?narHash=sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c%3D' (2024-09-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ca2e79cd22625d214b8437c2c4080ce79bd9f7d2?narHash=sha256-pupsow4L79SBfNwT6vh/5RAbVZuhngIA0RTCZksXmZY%3D' (2024-09-16) → 'github:oxalica/rust-overlay/20c8461785d8f5af32d8d4d5c128589e23d7f033?narHash=sha256-u1tAteb4qkH2gGjDY3mN/4Qxa6y798t4G0jNKDyTwv8%3D' (2024-09-17) • Updated input 'sops': 'github:Mic92/sops-nix/f30b1bac192e2dc252107ac8a59a03ad25e1b96e?narHash=sha256-z7CoWbSOtsOz8TmRKDnobURkKfv6nPZCo3ayolNuQGc%3D' (2024-09-13) → 'github:Mic92/sops-nix/e2d404a7ea599a013189aa42947f66cede0645c8?narHash=sha256-qis6BtOOBBEAfUl7FMHqqTwRLB61OL5OFzIsOmRz2J4%3D' (2024-09-16) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/9fb342d14b69aefdf46187f6bb80a4a0d97007cd?narHash=sha256-VcqxWT0O/gMaeWTTjf1r4MOyG49NaNxW4GHTO3xuThE%3D' (2024-09-02) → 'github:numtide/treefmt-nix/77dd46bf0ec7febbc0022bb6e4449cdc49af95d7?narHash=sha256-3zr63B6CDZ8FnzrRUvNZlsxLmFjaNyis6R91GjUCIhU%3D' (2024-09-17) |
||
---|---|---|
.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 | ||
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 |