No description
Erwin Boskma
9c71c7f57e
• Updated input 'disko': 'github:nix-community/disko/d7e178126f05d9b1e5bfbf115c36ec9f75b85e8b' (2023-01-23) → 'github:nix-community/disko/aa26c0ce0d0ed8129cb404abafb75a9ece0e1af1' (2023-01-28) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/1e9e9e62a5a37c262b4f31ee8cc97d40894d1874' (2023-01-27) → 'github:nix-community/emacs-overlay/d23a3449c8f26fb264402d3f7fb3fc7064b70e07' (2023-01-29) • Updated input 'home-manager': 'github:nix-community/home-manager/bb4b25b302dbf0f527f190461b080b5262871756' (2023-01-26) → 'github:nix-community/home-manager/08a778d80308353f4f65c9dcd3790b5da02d6306' (2023-01-28) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/af37a3895f810ebe3cc58600b0d9b2fcf449b2d1' (2023-01-27) → 'github:Hyprwm/Hyprland/32381fe6c4e33232401d7a74f587ee7296a61fcf' (2023-01-29) • Updated input 'nil': 'github:oxalica/nil/2082551a993019617fd72b4c71770328a716540c' (2023-01-27) → 'github:oxalica/nil/dfd91e3b7e760559bd79226ad5ad41444078a882' (2023-01-28) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/296dd673b46aaebe1c8355f1848ceb7c905dda35' (2023-01-27) → 'github:oxalica/rust-overlay/edd082ca16aa055d5504bea39da36b3ee68e4f1d' (2023-01-29) |
||
---|---|---|
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 |