No description
Erwin Boskma
5d47d62edd
• Updated input 'disko': 'github:nix-community/disko/aa26c0ce0d0ed8129cb404abafb75a9ece0e1af1' (2023-01-28) → 'github:nix-community/disko/e1f892517ebe97f3a97f6c4588d946eb5a9bdc98' (2023-01-30) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/d23a3449c8f26fb264402d3f7fb3fc7064b70e07' (2023-01-29) → 'github:nix-community/emacs-overlay/2b15bcc895fbb78f6eab189f2cf03f576d376a62' (2023-01-31) • Updated input 'home-manager': 'github:nix-community/home-manager/08a778d80308353f4f65c9dcd3790b5da02d6306' (2023-01-28) → 'github:nix-community/home-manager/69696fe53940562a047bf2ec675cc1dcd1bc09b3' (2023-01-31) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/32381fe6c4e33232401d7a74f587ee7296a61fcf' (2023-01-29) → 'github:Hyprwm/Hyprland/85c07c2fe0427ab5603addcef0e6b7cc211e1af7' (2023-01-31) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9b97ad7b4330aacda9b2343396eb3df8a853b4fc' (2023-01-25) → 'github:nixos/nixpkgs/2caf4ef5005ecc68141ecb4aac271079f7371c44' (2023-01-30) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/8539119ba0b17b15e60de60da0348d8c73bbfdf2' (2023-01-26) → 'github:cachix/pre-commit-hooks.nix/ce4efeec34c6eb35ba07b8fceaae87d6b46c1c5f' (2023-01-31) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/edd082ca16aa055d5504bea39da36b3ee68e4f1d' (2023-01-29) → 'github:oxalica/rust-overlay/48b1403150c3f5a9aeee8bc4c77c8926f29c6501' (2023-01-31) |
||
---|---|---|
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 |