No description
Erwin Boskma
4e798dbb3e
• Updated input 'disko': 'github:nix-community/disko/6388d2859c91adab847b4922b726f61920074494' (2023-08-14) → 'github:nix-community/disko/4eed2457b053c4bbad7d90d2b3a1d539c2c9009c' (2023-08-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7a4b5bbc06182e2f704630cd77a614ab0d9c2f2e' (2023-08-14) → 'github:nix-community/emacs-overlay/3751467118141bafb77a277a6f2626332ab33154' (2023-08-16) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/720e61ed8de116eec48d6baea1d54469b536b985' (2023-08-13) → 'github:NixOS/nixpkgs/bfd953b2c6de4f550f75461bcc5768b6f966be10' (2023-08-15) • Updated input 'eww': 'github:elkowar/eww/dc3129aee2806823bdad87785f7ef80651d5245c' (2023-07-29) → 'github:elkowar/eww/9d0b667deadf9e64d3b692274275d57a61c107c5' (2023-08-16) • Updated input 'home-manager': 'github:nix-community/home-manager/da6874e8bb82204323b94154585a1471c739f73e' (2023-08-14) → 'github:nix-community/home-manager/2471d965a3522025157a790fc49c3567fd56e26e' (2023-08-16) • Updated input 'naersk': 'github:nix-community/naersk/d9a33d69a9c421d64c8d925428864e93be895dcc' (2023-07-26) → 'github:nix-community/naersk/275010712ce41dff66634f9910bc1f085239b370' (2023-08-16) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/100a1550b0e7a64b960c625b656f9229bdef5f87' (2023-08-13) → 'github:nixos/nixpkgs/caac0eb6bdcad0b32cb2522e03e4002c8975c62e' (2023-08-16) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/c5ac3aa3324bd8aebe8622a3fc92eeb3975d317a' (2023-08-11) → 'github:cachix/pre-commit-hooks.nix/3e3d45c1f26e212abe24188ece996871d94618d8' (2023-08-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ce646c4052c4979078a1ed263bc6e8c1a14c0d07' (2023-08-14) → 'github:oxalica/rust-overlay/dea24da3d3be23ab53ee80314474afd5fcb03c1c' (2023-08-16) • Updated input 'sops': 'github:Mic92/sops-nix/32603de0dc988d60a7b80774dd7aed1083cd9629' (2023-08-13) → 'github:Mic92/sops-nix/f81e73cf9a4ef4b949b9225be3daa1e586c096da' (2023-08-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 |