No description
Erwin Boskma
d57f6b46cb
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7951ca5a9227877296c49a7ab0ce8dd430c12be5' (2023-07-31) → 'github:nix-community/emacs-overlay/791acfa700b9f96c35635fde2a17a66b4ed88c9e' (2023-08-03) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/d57e8c535d4cbb07f441c30988ce52eec69db7a8' (2023-07-29) → 'github:NixOS/nixpkgs/bd836ac5e5a7358dea73cb74a013ca32864ccb86' (2023-08-01) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04) → 'github:hercules-ci/flake-parts/59cf3f1447cfc75087e7273b04b31e689a8599fb' (2023-08-01) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29) → 'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01) • Updated input 'home-manager': 'github:nix-community/home-manager/729ab77f9e998e0989fa30140ecc91e738bc0cb1' (2023-07-31) → 'github:nix-community/home-manager/86dd48d70a2e2c17e84e747ba4faa92453e68d4a' (2023-08-03) • Updated input 'microvm': 'github:astro/microvm.nix/3183d2a0c00e25772ed3926a24908e3445c69bbc' (2023-07-29) → 'github:astro/microvm.nix/0263360417f214c1e5a585210e43d950d00bc683' (2023-08-01) • Updated input 'nil': 'github:oxalica/nil/59bcad0b13b5d77668c0c125fef71d7b41406d7a' (2023-07-19) → 'github:oxalica/nil/6f20ed411520aac06b456e31aab43cf10df231a2' (2023-08-02) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/96e5a0a0e8568c998135ea05575a9ed2c87f5492' (2023-07-30) → 'github:NixOS/nixos-hardware/24f9162b26f0debd163f6d94752aa2acb9db395a' (2023-08-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e6ab46982debeab9831236869539a507f670a129' (2023-07-29) → 'github:nixos/nixpkgs/66aedfd010204949cb225cf749be08cb13ce1813' (2023-08-02) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/05d480a7aef1aae1bfb67a39134dcf48c5322528' (2023-07-30) → 'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03) |
||
---|---|---|
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 |