No description
Erwin Boskma
b353e9d125
• Updated input 'disko': 'github:nix-community/disko/e1f892517ebe97f3a97f6c4588d946eb5a9bdc98' (2023-01-30) → 'github:nix-community/disko/c0c93e75d9949e1f1a6bfb393ecd26115ccb2a69' (2023-02-02) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/2b15bcc895fbb78f6eab189f2cf03f576d376a62' (2023-01-31) → 'github:nix-community/emacs-overlay/a018577287e390e01654a8b44d57d183a51b72b2' (2023-02-02) • Updated input 'home-manager': 'github:nix-community/home-manager/69696fe53940562a047bf2ec675cc1dcd1bc09b3' (2023-01-31) → 'github:nix-community/home-manager/d1c7730bb707bf8124d997952f7babd2a281ae68' (2023-02-02) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/85c07c2fe0427ab5603addcef0e6b7cc211e1af7' (2023-01-31) → 'github:Hyprwm/Hyprland/32d56fec977b109aeecb06288a1b45cfe6b83117' (2023-02-01) • Updated input 'nil': 'github:oxalica/nil/dfd91e3b7e760559bd79226ad5ad41444078a882' (2023-01-28) → 'github:oxalica/nil/2d048b7f2802366a00e09dfdc1d21212dfc544d9' (2023-02-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2caf4ef5005ecc68141ecb4aac271079f7371c44' (2023-01-30) → 'github:nixos/nixpkgs/e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e' (2023-01-31) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/ce4efeec34c6eb35ba07b8fceaae87d6b46c1c5f' (2023-01-31) → 'github:cachix/pre-commit-hooks.nix/5668d079583a5b594cb4e0cc0e6d84f1b93da7ae' (2023-02-02) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/48b1403150c3f5a9aeee8bc4c77c8926f29c6501' (2023-01-31) → 'github:oxalica/rust-overlay/61ec735acfb1f549237bc525da355bd0b9cc70a3' (2023-02-02) • Updated input 'sops': 'github:Mic92/sops-nix/b6ab3c61e2ca5e07d1f4eb1b67304e2670ea230c' (2023-01-24) → 'github:Mic92/sops-nix/a81ce6c961480b3b93498507074000c589bd9d60' (2023-02-01) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/918b760070bb8f48cb511300fcd7e02e13058a2e' (2023-01-22) → 'github:NixOS/nixpkgs/a3a1400571e3b9ccc270c2e8d36194cf05aab6ce' (2023-02-01) |
||
---|---|---|
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 |