No description
Erwin Boskma
d37889cdf9
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/6b44cc8a441bed3796e6ddc984745fcdeaba8aa4' (2023-01-26) → 'github:nix-community/emacs-overlay/1e9e9e62a5a37c262b4f31ee8cc97d40894d1874' (2023-01-27) • Updated input 'home-manager': 'github:nix-community/home-manager/c59f0eac51da91c6989fd13a68e156f63c0e60b6' (2023-01-24) → 'github:nix-community/home-manager/bb4b25b302dbf0f527f190461b080b5262871756' (2023-01-26) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/fc89e70a1fb74429ad0f772d399325f69e65b357' (2023-01-25) → 'github:Hyprwm/Hyprland/af37a3895f810ebe3cc58600b0d9b2fcf449b2d1' (2023-01-27) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/1b1f50645af2a70dc93eae18bfd88d330bfbcf7f' (2023-01-23) → 'github:nixos/nixpkgs/9b97ad7b4330aacda9b2343396eb3df8a853b4fc' (2023-01-25) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/7bdf85f6bbef581eb687838d19f2b35a4c9d77f0' (2023-01-24) → 'github:cachix/pre-commit-hooks.nix/8539119ba0b17b15e60de60da0348d8c73bbfdf2' (2023-01-26) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/480f9cc37db841d1fd3ac0b0c059d48e5eb6946c' (2023-01-26) → 'github:oxalica/rust-overlay/296dd673b46aaebe1c8355f1848ceb7c905dda35' (2023-01-27) |
||
---|---|---|
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 |