No description
Erwin Boskma
5f8e3728ce
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/9206a7acdc0dd951d5d229b09405c7c6205bcef4' (2024-01-04) → 'github:nix-community/emacs-overlay/85ac1bf8543d2e179d7748f3788d58b06eacc758' (2024-01-06) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/2d2ea8eab9e400618748ab1a6a108255233b602c' (2024-01-01) → 'github:NixOS/nixpkgs/b0b2c5445c64191fd8d0b31f2b1a34e45a64547d' (2024-01-03) • Updated input 'home-manager': 'github:nix-community/home-manager/26b8adb300e50efceb51fff6859a1a6ba1ade4f7' (2024-01-04) → 'github:nix-community/home-manager/51e44a13acea71b36245e8bd8c7db53e0a3e61ee' (2024-01-05) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/8e34f33464d77bea2d5cf7dc1066647b1ad2b324' (2024-01-03) → 'github:NixOS/nixos-hardware/172385318068519900a7d71c1024242fa6af75f0' (2024-01-05) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/a0df72e106322b67e9c6e591fe870380bd0da0d5' (2024-01-01) → 'github:oxalica/rust-overlay/a127cccf7943beae944953963ba118d643299c3b' (2024-01-06) |
||
---|---|---|
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.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 eza 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 |