No description
Erwin Boskma
35f38615ab
• Updated input 'disko': 'github:nix-community/disko/713eb78002e69bd77f5a69595756fd2e564233f3' (2023-07-23) → 'github:nix-community/disko/5b19fb2e74df312751cecbf0f668217eb59d9170' (2023-07-25) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9815e71dd833db0b076072df6f7ea46737854470' (2023-07-25) → 'github:nix-community/emacs-overlay/4aeae735d19b2012108c41cbf9ff8dfc7895b97f' (2023-07-27) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/ac1acba43b2f9db073943ff5ed883ce7e8a40a2c' (2023-07-23) → 'github:NixOS/nixpkgs/6dc93f0daec55ee2f441da385aaf143863e3d671' (2023-07-25) • Updated input 'home-manager': 'github:nix-community/home-manager/0306d5ed7e9d1662b55ec0d08afc73d4cb5eadca' (2023-07-25) → 'github:nix-community/home-manager/ba2c0737cc848db03470828fdb5e86df75ed42a8' (2023-07-25) • Updated input 'naersk': 'github:nix-community/naersk/abca1fb7a6cfdd355231fc220c3d0302dbb4369a' (2023-07-05) → 'github:nix-community/naersk/d9a33d69a9c421d64c8d925428864e93be895dcc' (2023-07-26) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/b12803b6d90e2e583429bb79b859ca53c348b39a' (2023-07-24) → 'github:nixos/nixpkgs/ef99fa5c5ed624460217c31ac4271cfb5cb2502c' (2023-07-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/8d64353ca827002fb8459e44d49116c78d868eba' (2023-07-25) → 'github:oxalica/rust-overlay/f335a0213504c7e6481c359dc1009be9cf34432c' (2023-07-27) |
||
---|---|---|
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 |