No description
Erwin Boskma
71530aa3e6
• Updated input 'disko': 'github:nix-community/disko/55eea2030a42845102334eb29f054f0c6604a32c' (2023-06-12) → 'github:nix-community/disko/fa4ec0bd26a103b3aa0d5a60f60399724face977' (2023-06-15) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/d248cdbbc9799d0cff8550e4fb4267bfac66e992' (2023-06-13) → 'github:nix-community/emacs-overlay/d9c74049fc523f59e153d21c5498dc94d884f3fc' (2023-06-15) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/d3bb401dcfc5a46ce51cdfb5762e70cc75d082d2' (2023-06-10) → 'github:NixOS/nixpkgs/ddf4688dc7aeb14e8a3c549cb6aa6337f187a884' (2023-06-14) • Updated input 'home-manager': 'github:nix-community/home-manager/d437f0d4e0f72fe76688142e954a4a9b61ac9833' (2023-06-13) → 'github:nix-community/home-manager/e0034971f9def16bbc32124147787bc0f09f0e59' (2023-06-14) • Updated input 'microvm': 'github:astro/microvm.nix/551239936a1c86479f6026658c4d1f1a3635d286' (2023-06-11) → 'github:astro/microvm.nix/8560a69ca9da2da59f6e05995348b24abba121e5' (2023-06-14) • Updated input 'nil': 'github:oxalica/nil/119e56eb4dfcd9fcc1bb808bf68ae3e7a3091409' (2023-06-11) → 'github:oxalica/nil/1edf2ad0ae832df55400c04b6c6e26cf066b133a' (2023-06-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/75a5ebf473cd60148ba9aec0d219f72e5cf52519' (2023-06-11) → 'github:nixos/nixpkgs/0eeebd64de89e4163f4d3cf34ffe925a5cf67a05' (2023-06-12) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/182af51202998af5b64ddecaa7ff9be06425399b' (2023-06-08) → 'github:cachix/pre-commit-hooks.nix/5b6b54d3f722aa95cbf4ddbe35390a0af8c0015a' (2023-06-13) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/e279547de84413ca1a65cec3f0f879709c8c65eb' (2023-06-13) → 'github:oxalica/rust-overlay/5c2b97c0a9bc5217fc3dfb1555aae0fb756d99f9' (2023-06-15) |
||
---|---|---|
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 |