No description
Erwin Boskma
9213cf632f
• Updated input 'disko': 'github:nix-community/disko/12662956d155c75dbbbdb72e3f3691169475faae' (2023-05-21) → 'github:nix-community/disko/f0b9f374bb42fdcd57baa7d4448ac5d4788226bd' (2023-05-22) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/fd44d0d55374c24bf92aa59b4131a5cada358bb6' (2023-05-21) → 'github:nix-community/emacs-overlay/2806dea6457fed28013169a05a6dcf9c722d5465' (2023-05-23) • Updated input 'home-manager': 'github:nix-community/home-manager/27ef11f0218d9018ebb2948d40133df2b1de622d' (2023-05-20) → 'github:nix-community/home-manager/58eb968c21d309a6c2b020ea8d64e25c38ceebba' (2023-05-23) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3' (2023-05-20) → 'github:nixos/nixpkgs/7084250df3d7f9735087d3234407f3c1fc2400e3' (2023-05-22) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/96eabec58248ed8f4b0ad59e7ce9398018684fdc' (2023-05-15) → 'github:cachix/pre-commit-hooks.nix/df448ffc5d244f52261d05894c5a96af7f3758a1' (2023-05-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/eb5c0ca38d81b934b5ff1deca912d263e1a85bb5' (2023-05-21) → 'github:oxalica/rust-overlay/a227d4571dd1f948138a40ea8b0d0c413eefb44b' (2023-05-23) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |