No description
Erwin Boskma
eb76a5d566
• Updated input 'disko': 'github:nix-community/disko/f1178c6e72b7d8ab2b55990397969324822275eb' (2023-06-07) → 'github:nix-community/disko/55eea2030a42845102334eb29f054f0c6604a32c' (2023-06-12) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/bdc9dc52f1ae9772ebdca1f132554fe548392001' (2023-06-08) → 'github:nix-community/emacs-overlay/d248cdbbc9799d0cff8550e4fb4267bfac66e992' (2023-06-13) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/a558f7ac29f50c4b937fb5c102f587678ae1c9fb' (2023-06-06) → 'github:NixOS/nixpkgs/d3bb401dcfc5a46ce51cdfb5762e70cc75d082d2' (2023-06-10) • Updated input 'home-manager': 'github:nix-community/home-manager/cc6745b35fefe48624ebf573382e1e0e4a6fe85e' (2023-06-07) → 'github:nix-community/home-manager/d437f0d4e0f72fe76688142e954a4a9b61ac9833' (2023-06-13) • Updated input 'microvm': 'github:astro/microvm.nix/53155678bf68be0dadbe31e114971846dccba9e7' (2023-06-07) → 'github:astro/microvm.nix/551239936a1c86479f6026658c4d1f1a3635d286' (2023-06-11) • Updated input 'naersk': 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23) → 'github:nix-community/naersk/8507af04eb40c5520bd35d9ce6f9d2342cea5ad1' (2023-06-12) • Updated input 'nil': 'github:oxalica/nil/dcd38b96c91a2d07552f824a6480e00dc7b4948a' (2023-05-31) → 'github:oxalica/nil/119e56eb4dfcd9fcc1bb808bf68ae3e7a3091409' (2023-06-11) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/4cc688ee711159b9bcb5a367be44007934e1a49d' (2023-05-24) → 'github:NixOS/nixos-hardware/2a807ad6e8dc458db08588b78cc3c0f0ec4ff321' (2023-06-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4729ffac6fd12e26e5a8de002781ffc49b0e94b7' (2023-06-06) → 'github:nixos/nixpkgs/75a5ebf473cd60148ba9aec0d219f72e5cf52519' (2023-06-11) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/6881eb2ae5d8a3516e34714e7a90d9d95914c4dc' (2023-06-06) → 'github:cachix/pre-commit-hooks.nix/182af51202998af5b64ddecaa7ff9be06425399b' (2023-06-08) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b4b71458b92294e8f1c3a112d972e3cff8a2ab71' (2023-06-08) → 'github:oxalica/rust-overlay/e279547de84413ca1a65cec3f0f879709c8c65eb' (2023-06-13) • Updated input 'sops': 'github:Mic92/sops-nix/a522e12ee35e50fa7d902a164a9796e420e6e75b' (2023-06-04) → 'github:Mic92/sops-nix/cb85e297937af1bd1434cf5f85a3f86a21dc8207' (2023-06-11) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/eaf03591711b46d21abc7082a8ebee4681f9dbeb' (2023-06-03) → 'github:NixOS/nixpkgs/ef24b2fa0c5f290a35064b847bc211f25cb85c88' (2023-06-10) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.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 exa 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 |