No description
Erwin Boskma
5b3e91c442
• Updated input 'disko': 'github:nix-community/disko/8f95856432e091e5ac56fea2df81e905ddd02d27' (2023-05-13) → 'github:nix-community/disko/efb2016c8e6a91ea64e0604d69e332d8aceabb95' (2023-05-19) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9b41f8296a3898bdb87b9d091f9df540a982b242' (2023-05-15) → 'github:nix-community/emacs-overlay/34e7e913bb78cbb10a1fac073b55eaacb10c1f7c' (2023-05-19) • Updated input 'home-manager': 'github:nix-community/home-manager/e4272987f785a8848205263abb4911b922c21e1b' (2023-05-14) → 'github:nix-community/home-manager/b9a52ad20e58ebd003444915e35e3dd2c18fc715' (2023-05-19) • Updated input 'microvm': 'github:astro/microvm.nix/5cec173936d71f25d8f959db4893bf14bd053529' (2023-05-15) → 'github:astro/microvm.nix/59008a1eda995fbd844a756412f7d685086c15a2' (2023-05-17) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/81cd886719e10d4822b2a6caa96e95d56cc915ef' (2023-05-13) → 'github:NixOS/nixos-hardware/71ce85372a614d418d5e303dd5702a79d1545c04' (2023-05-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0470f36b02ef01d4f43c641bbf07020bcab71bf1' (2023-05-14) → 'github:nixos/nixpkgs/48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a' (2023-05-18) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/fb58866e20af98779017134319b5663b8215d912' (2023-04-27) → 'github:cachix/pre-commit-hooks.nix/96eabec58248ed8f4b0ad59e7ce9398018684fdc' (2023-05-15) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/4679872d2dd3e94ffef75efcbf77ea11549d90a7' (2023-05-15) → 'github:oxalica/rust-overlay/e2ceeaa7f9334c5d732323b6fec363229da4f382' (2023-05-19) |
||
---|---|---|
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 |