No description
Erwin Boskma
0fd19dd3dd
• Updated input 'disko': 'github:nix-community/disko/4d9c89abde7ccedf743a01119d41fb880793bcba' (2023-03-30) → 'github:nix-community/disko/8891df70294ed9b8c930954f555391c4ba9bfe82' (2023-04-06) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/8d3390e69f6f850f33e7b70d2c7a4b83c5f69871' (2023-04-05) → 'github:nix-community/emacs-overlay/d092f0b653985d6cb1d7c828ff2ac602a36b7e4e' (2023-04-07) • Updated input 'flake-utils': 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15) → 'github:numtide/flake-utils/411e8764155aa9354dbcd6d5faaeb97e9e3dce24' (2023-04-06) • Updated input 'microvm': 'github:astro/microvm.nix/f968ea83bdc542fd5e81e4bb1d726986098095b1' (2023-04-02) → 'github:astro/microvm.nix/d05d2b2e5ae938184efba4be575ef2d7bdf1ee5b' (2023-04-05) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/a6aa8174fa61e55bd7e62d35464d3092aefe0421' (2023-03-29) → 'github:NixOS/nixos-hardware/148fee317058fad8159619e9d6ccc8c0aa6d0fce' (2023-04-06) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/53dad94e874c9586e71decf82d972dfb640ef044' (2023-04-03) → 'github:nixos/nixpkgs/9c8ff8b426a8b07b9e0a131ac3218740dc85ba1e' (2023-04-05) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/3342d7c51119030490fdcd07351b53b10806891c' (2023-04-04) → 'github:cachix/pre-commit-hooks.nix/d8480d44ffd2e1b5440a3cf74ce6fb299557e9a0' (2023-04-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/2f40052be98347b479c820c00fb2fc1d87b3aa28' (2023-04-05) → 'github:oxalica/rust-overlay/d1dd2791698a60837ed829a49cd0e4663f5da801' (2023-04-07) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 |