No description
Erwin Boskma
aab63e451e
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13) → 'github:nix-community/disko/325e1f7f2e0eea44c27e5e8a3946c2461ec095f2' (2023-10-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/fa2c99af244d425c43ef768cec348c995a98a1a5' (2023-10-14) → 'github:nix-community/emacs-overlay/82b81829dd689bbc397ead6615c1f1f212acb80d' (2023-10-18) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/bd1cde45c77891214131cbbea5b1203e485a9d51' (2023-10-11) → 'github:NixOS/nixpkgs/898cb2064b6e98b8c5499f37e81adbdf2925f7c5' (2023-10-13) • Updated input 'home-manager': 'github:nix-community/home-manager/6bba64781e4b7c1f91a733583defbd3e46b49408' (2023-10-10) → 'github:nix-community/home-manager/05649393ac1f34980a5cf6a6e89de77626c9182b' (2023-10-18) • Updated input 'microvm': 'github:astro/microvm.nix/38e15eee892e1866f483467de51025dbef473306' (2023-10-12) → 'github:astro/microvm.nix/08f6052918b559ed5c7d1145d94a9a0c53b147a2' (2023-10-16) • Updated input 'nil': 'github:oxalica/nil/ee215a18abf1798dac632f76cad3dea6a8d4418f' (2023-10-09) → 'github:oxalica/nil/73eeaa64d847f9db42e6d4f7bc80ca04011933a5' (2023-10-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5e4c2ada4fcd54b99d56d7bd62f384511a7e2593' (2023-10-11) → 'github:nixos/nixpkgs/ca012a02bf8327be9e488546faecae5e05d7d749' (2023-10-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14) → 'github:oxalica/rust-overlay/a2ccfb2134622b28668a274e403ba6f075ae1223' (2023-10-18) • Updated input 'sops': 'github:Mic92/sops-nix/f995ea159252a53b25fa99824f2891e3b479d511' (2023-10-11) → 'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/2f3b6b3fcd9fa0a4e6b544180c058a70890a7cc1' (2023-10-07) → 'github:NixOS/nixpkgs/0e1cff585c1a85aeab059d3109f66134a8f76935' (2023-10-15) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.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 |