No description
Erwin Boskma
56d23a2480
• Updated input 'disko': 'github:nix-community/disko/8002e7cb899bc2a02a2ebfb7f999fcd7c18b92a1' (2023-06-28) → 'github:nix-community/disko/fc3c3817c9f1fcd405463c6a7f0f98baab97c692' (2023-07-05) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/388758cbdd4fb1fa3c24543a5f19e9f0f570c3eb' (2023-07-03) → 'github:nix-community/emacs-overlay/05f4c43b163391ac984cfbe2b4787350ee565b3e' (2023-07-06) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/0de86059128947b2438995450f2c2ca08cc783d5' (2023-07-01) → 'github:NixOS/nixpkgs/c99004f75fd28cc10b9d2e01f51a412d768269c8' (2023-07-05) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/267149c58a14d15f7f81b4d737308421de9d7152' (2023-07-01) → 'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04) • Updated input 'home-manager': 'github:nix-community/home-manager/c85d9137db45a1c9c161f4718b13cc3bd4cbd173' (2023-07-02) → 'github:nix-community/home-manager/b23c7501f7e0a001486c9a5555a6c53ac7b08e85' (2023-07-05) • Updated input 'microvm': 'github:astro/microvm.nix/f7c9df6a19de6bb5215b32f6bbd5a8c9d6510ebf' (2023-07-02) → 'github:astro/microvm.nix/d5b051c75680242b02f2d82df4c812578c47964e' (2023-07-05) • Updated input 'naersk': 'github:nix-community/naersk/714e701eb4ca2491d34d794b98be4b994a796ae7' (2023-07-01) → 'github:nix-community/naersk/abca1fb7a6cfdd355231fc220c3d0302dbb4369a' (2023-07-05) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/645ff62e09d294a30de823cb568e9c6d68e92606' (2023-07-01) → 'github:nixos/nixpkgs/78419edadf0fabbe5618643bd850b2f2198ed060' (2023-07-04) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/42587d3414d1747999a5f71e92a83cf6547b62da' (2023-07-03) → 'github:cachix/pre-commit-hooks.nix/c8d18ba345730019c3faf412c96a045ade171895' (2023-07-05) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/f9b92316727af9e6c7fee4a761242f7f46880329' (2023-07-03) → 'github:oxalica/rust-overlay/358d7155300cd64357f9afd14aa3383c2323e5fc' (2023-07-06) |
||
---|---|---|
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 |