No description
Erwin Boskma
968b9ce8bf
• Updated input 'disko': 'github:nix-community/disko/825be2b6275b0b2f1556873acba5b8bea6dd7e4d' (2023-01-23) → 'github:nix-community/disko/d7e178126f05d9b1e5bfbf115c36ec9f75b85e8b' (2023-01-23) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/908646b952e01a03b292cdda646e81b5ced87aa9' (2023-01-23) → 'github:nix-community/emacs-overlay/53018b60fc15aaac1722031e50b043883b74fcd0' (2023-01-25) • Updated input 'home-manager': 'github:nix-community/home-manager/275ab728912006eecb549338a50f24f294a7cfb7' (2023-01-20) → 'github:nix-community/home-manager/c59f0eac51da91c6989fd13a68e156f63c0e60b6' (2023-01-24) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/cb98242ea7faff04dad3ae166aff7126184f17c5' (2023-01-22) → 'github:Hyprwm/Hyprland/12e293e3092b03dbb9d82e7a749f482ef2b7ea6e' (2023-01-24) • Updated input 'nil': 'github:oxalica/nil/3f84b783d36d564c4380631ab48d771e2558cb81' (2023-01-19) → 'github:oxalica/nil/6e5321582ca7595455edf2a9643f83ce390d0a71' (2023-01-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/7bd6b87b3712e68007823e8dd5c37ee9b114fee3' (2023-01-15) → 'github:NixOS/nixos-hardware/b7ac0a56029e4f9e6743b9993037a5aaafd57103' (2023-01-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5ed481943351e9fd354aeb557679624224de38d5' (2023-01-20) → 'github:nixos/nixpkgs/1b1f50645af2a70dc93eae18bfd88d330bfbcf7f' (2023-01-23) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/53e766957b73298fa68b47478c48cbcc005cc18a' (2023-01-19) → 'github:cachix/pre-commit-hooks.nix/7bdf85f6bbef581eb687838d19f2b35a4c9d77f0' (2023-01-24) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/57b363f390f031b8b8d26235c2d21b0ad5a84640' (2023-01-23) → 'github:oxalica/rust-overlay/187b7835d59b9c040e0782b5b129de113207c2d5' (2023-01-24) • Updated input 'sops': 'github:Mic92/sops-nix/51fdbd2d6fc2a7ba318e823a12609276bcc4dbe9' (2023-01-22) → 'github:Mic92/sops-nix/b6ab3c61e2ca5e07d1f4eb1b67304e2670ea230c' (2023-01-24) |
||
---|---|---|
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 |