No description
Erwin Boskma
cc5a2a1d2f
• Updated input 'disko': 'github:nix-community/disko/efb2016c8e6a91ea64e0604d69e332d8aceabb95' (2023-05-19) → 'github:nix-community/disko/12662956d155c75dbbbdb72e3f3691169475faae' (2023-05-21) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/deeb9232d4545b989cb0ec025db5eacaaa0ed400' (2023-05-19) → 'github:nix-community/emacs-overlay/fd44d0d55374c24bf92aa59b4131a5cada358bb6' (2023-05-21) • Updated input 'home-manager': 'github:nix-community/home-manager/b9a52ad20e58ebd003444915e35e3dd2c18fc715' (2023-05-19) → 'github:nix-community/home-manager/27ef11f0218d9018ebb2948d40133df2b1de622d' (2023-05-20) • Updated input 'nil': 'github:oxalica/nil/18de045d7788df2343aec58df7b85c10d1f5d5dd' (2023-05-09) → 'github:oxalica/nil/17ed1578f3a225f2760d4da3adb440eb8677f2d3' (2023-05-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a' (2023-05-18) → 'github:nixos/nixpkgs/3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3' (2023-05-20) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/e2ceeaa7f9334c5d732323b6fec363229da4f382' (2023-05-19) → 'github:oxalica/rust-overlay/eb5c0ca38d81b934b5ff1deca912d263e1a85bb5' (2023-05-21) • Updated input 'sops': 'github:Mic92/sops-nix/a376127bb5277cd2c337a9458744f370aaf2e08d' (2023-05-14) → 'github:Mic92/sops-nix/4ccdfb573f323a108a44c13bb7730e42baf962a9' (2023-05-21) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/c6d2f3dc0d3efd4285eebe4f8a36a47ba438138e' (2023-05-14) → 'github:NixOS/nixpkgs/d0dade110dc7072d67ce27826cfe9ab2ab0cf247' (2023-05-21) |
||
---|---|---|
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 |