No description
Erwin Boskma
64bc7cc7ac
• Updated input 'disko': 'github:nix-community/disko/c0c93e75d9949e1f1a6bfb393ecd26115ccb2a69' (2023-02-02) → 'github:nix-community/disko/da20419aabc6f3ea5088d3b6b1d132ea8a50619c' (2023-02-03) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/a018577287e390e01654a8b44d57d183a51b72b2' (2023-02-02) → 'github:nix-community/emacs-overlay/0d630ac0f6430797b885a86a6699e8c75093c513' (2023-02-04) • Updated input 'home-manager': 'github:nix-community/home-manager/d1c7730bb707bf8124d997952f7babd2a281ae68' (2023-02-02) → 'github:nix-community/home-manager/e2c1756e3ae001ca8696912016dd31cb1503ccf3' (2023-02-03) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/32d56fec977b109aeecb06288a1b45cfe6b83117' (2023-02-01) → 'github:Hyprwm/Hyprland/760b37f71d200643d3e267472e5cc290d38d1a53' (2023-02-04) • Updated input 'hyprland/wlroots': 'gitlab:wlroots/wlroots/5f264a7d6c8af27d41ff440c05262b022c055593' (2023-01-04) → 'gitlab:wlroots/wlroots/677a3f2f8847ed2de49dd60868f9d9487a546f58' (2023-02-02) • Updated input 'nil': 'github:oxalica/nil/2d048b7f2802366a00e09dfdc1d21212dfc544d9' (2023-02-02) → 'github:oxalica/nil/1a15174958729ca578db517e735479ed5fb963db' (2023-02-04) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e' (2023-01-31) → 'github:nixos/nixpkgs/06999209d7a0043d4372e38f57cffae00223d592' (2023-02-03) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/61ec735acfb1f549237bc525da355bd0b9cc70a3' (2023-02-02) → 'github:oxalica/rust-overlay/1f1d13846ae88826391e5d65d85247a30982671b' (2023-02-04) |
||
---|---|---|
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 |