No description
Erwin Boskma
5bb04df77a
• Updated input 'disko': 'github:nix-community/disko/68eb09b1833301d729ae6e89583173b6ceaade1c' (2023-07-13) → 'github:nix-community/disko/7eb09408393faa5b8f3b3524c39cb93d938e8d04' (2023-07-14) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/3fbcace5b46e8b75d45314914f0ac58cc680ab81' (2023-07-13) → 'github:nix-community/emacs-overlay/cffb75cf9e402be7e1a62fe4d67fe2d26713a3ba' (2023-07-18) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/98da3dd0de6660d4abed7bb74e748694bd803413' (2023-07-12) → 'github:NixOS/nixpkgs/f64b9738da8e86195766147e9752c67fccee006c' (2023-07-16) • Updated input 'home-manager': 'github:nix-community/home-manager/e42fb59768f0305085abde0dd27ab5e0cc15420c' (2023-07-12) → 'github:nix-community/home-manager/2f84579a70b8c74e5ebb37299a0c3ba279f09382' (2023-07-16) • Updated input 'nil': 'github:oxalica/nil/a7ab280e8607b52c25d899cdf7532db1ff71262f' (2023-07-12) → 'github:oxalica/nil/e2fe1b0bebcc810a5e6c24c061d4d8dcc061a8fc' (2023-07-14) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/44bc025007e5fcc10dbc3d9f96dcbf06fc0e8c1c' (2023-07-11) → 'github:NixOS/nixos-hardware/d4ea64f2063820120c05f6ba93ee02e6d4671d6b' (2023-07-14) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2de8efefb6ce7f5e4e75bdf57376a96555986841' (2023-07-12) → 'github:nixos/nixpkgs/6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222' (2023-07-16) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/c8d18ba345730019c3faf412c96a045ade171895' (2023-07-05) → 'github:cachix/pre-commit-hooks.nix/87589fa438dd6d5b8c7c1c6ab2ad69e4663bb51f' (2023-07-17) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/7a1c8fd0f90694af49b89181344096e3375f2e23' (2023-07-13) → 'github:oxalica/rust-overlay/ed2774a9131ddad12e552ba04bd92f87df04a28b' (2023-07-18) • Updated input 'sops': 'github:Mic92/sops-nix/88b964df6981e4844c07be8c192aa6bdca768a10' (2023-07-12) → 'github:Mic92/sops-nix/bd695cc4d0a5e1bead703cc1bec5fa3094820a81' (2023-07-16) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/510d721ce097150ae3b80f84b04b13b039186571' (2023-07-09) → 'github:NixOS/nixpkgs/13231eccfa1da771afa5c0807fdd73e05a1ec4e6' (2023-07-16) |
||
---|---|---|
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 |