No description
Erwin Boskma
014bab378e
• Updated input 'disko': 'github:nix-community/disko/fc3c3817c9f1fcd405463c6a7f0f98baab97c692' (2023-07-05) → 'github:nix-community/disko/68eb09b1833301d729ae6e89583173b6ceaade1c' (2023-07-13) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/05f4c43b163391ac984cfbe2b4787350ee565b3e' (2023-07-06) → 'github:nix-community/emacs-overlay/3fbcace5b46e8b75d45314914f0ac58cc680ab81' (2023-07-13) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/c99004f75fd28cc10b9d2e01f51a412d768269c8' (2023-07-05) → 'github:NixOS/nixpkgs/98da3dd0de6660d4abed7bb74e748694bd803413' (2023-07-12) • Updated input 'flake-utils': 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25) → 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11) • Updated input 'home-manager': 'github:nix-community/home-manager/b23c7501f7e0a001486c9a5555a6c53ac7b08e85' (2023-07-05) → 'github:nix-community/home-manager/e42fb59768f0305085abde0dd27ab5e0cc15420c' (2023-07-12) • Updated input 'microvm': 'github:astro/microvm.nix/d5b051c75680242b02f2d82df4c812578c47964e' (2023-07-05) → 'github:astro/microvm.nix/018691bf86a70b7e5d24eb37d6aad05ce1c1b12e' (2023-07-09) • Updated input 'nil': 'github:oxalica/nil/f6bd5fea84bb5b0b3685b5dd9c21c83fe6ab9b64' (2023-06-26) → 'github:oxalica/nil/a7ab280e8607b52c25d899cdf7532db1ff71262f' (2023-07-12) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/429f232fe1dc398c5afea19a51aad6931ee0fb89' (2023-06-15) → 'github:NixOS/nixos-hardware/44bc025007e5fcc10dbc3d9f96dcbf06fc0e8c1c' (2023-07-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/78419edadf0fabbe5618643bd850b2f2198ed060' (2023-07-04) → 'github:nixos/nixpkgs/2de8efefb6ce7f5e4e75bdf57376a96555986841' (2023-07-12) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/358d7155300cd64357f9afd14aa3383c2323e5fc' (2023-07-06) → 'github:oxalica/rust-overlay/7a1c8fd0f90694af49b89181344096e3375f2e23' (2023-07-13) • Updated input 'sops': 'github:Mic92/sops-nix/5ed3c22c1fa0515e037e36956a67fe7e32c92957' (2023-07-02) → 'github:Mic92/sops-nix/88b964df6981e4844c07be8c192aa6bdca768a10' (2023-07-12) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/f553c016a31277246f8d3724d3b1eee5e8c0842c' (2023-07-02) → 'github:NixOS/nixpkgs/510d721ce097150ae3b80f84b04b13b039186571' (2023-07-09) |
||
---|---|---|
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 |