No description
Erwin Boskma
df012deb3a
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/b2ea7d62581fa50d3e19a949b85fe04c1e8d7384' (2023-09-05) → 'github:nix-community/disko/f9907fcf6df79a76ea7e3a3afe9340a672cb9c6e' (2023-09-09) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/f5c2366c5d8f241b8c66e4b18be8ad25ffdb4e48' (2023-09-06) → 'github:nix-community/emacs-overlay/2276b94b3d43467372de17708ab3468a5821fcfc' (2023-09-09) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/da5adce0ffaff10f6d0fee72a02a5ed9d01b52fc' (2023-09-03) → 'github:NixOS/nixpkgs/4f77ea639305f1de0a14d9d41eef83313360638c' (2023-09-07) • Updated input 'home-manager': 'github:nix-community/home-manager/b22d7bab30076bbb73744867d6c5bf7d6380570c' (2023-09-06) → 'github:nix-community/home-manager/19c6a4081b14443420358262f8416149bd79561a' (2023-09-08) • Updated input 'microvm': 'github:astro/microvm.nix/8d2a99baa151bc120b3f062aadbfaca7a942c23a' (2023-09-05) → 'github:astro/microvm.nix/25460d97cffffe24f565a9d654c4aab1848598b4' (2023-09-08) • Updated input 'naersk': 'github:nix-community/naersk/78789c30d64dea2396c9da516bbcc8db3a475207' (2023-08-18) → 'github:nix-community/naersk/3f976d822b7b37fc6fb8e6f157c2dd05e7e94e89' (2023-09-07) • Updated input 'nil': 'github:oxalica/nil/4bdcfcfe38cfcb386142e043392afbfa542665dd' (2023-09-03) → 'github:oxalica/nil/4775e34c30f6101a9bb4364a0c7e4aae4ae43f11' (2023-09-08) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3c15feef7770eb5500a4b8792623e2d6f598c9c1' (2023-09-04) → 'github:nixos/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/a8b4bb4cbb744baaabc3e69099f352f99164e2c1' (2023-09-06) → 'github:oxalica/rust-overlay/1b4fad9dccece45c25b9ebda607427d69a8f1eae' (2023-09-09) |
||
---|---|---|
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 |