No description
Erwin Boskma
04cb6a0c4c
Some checks failed
/ check (push) Has been cancelled
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/1ae1f57dad13595600dd57b6a55fcbaef6673804' (2024-02-19) → 'github:nix-community/disko/23d308f0059955e3719efc81a34d1fc0369fbb74' (2024-02-22) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/39a63475945fea0d8b4e4aeb351f392c1c3beeab' (2024-02-21) → 'github:nix-community/emacs-overlay/841abef01afbd293aa80130bcbd811e4102d5770' (2024-02-23) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/e0da498ad77ac8909a980f07eff060862417ccf7' (2024-02-18) → 'github:NixOS/nixpkgs/3cb4ae6689d2aa3f363516234572613b31212b78' (2024-02-22) • Updated input 'home-manager': 'github:nix-community/home-manager/517601b37c6d495274454f63c5a483c8e3ca6be1' (2024-02-20) → 'github:nix-community/home-manager/0e0e9669547e45ea6cca2de4044c1a384fd0fe55' (2024-02-22) • Updated input 'microvm': 'github:astro/microvm.nix/c3f2eb54f96f56ec93fcccc7f14808f10a61e6ca' (2024-02-20) → 'github:astro/microvm.nix/5544916016482c91874b0b25fd069a6e041c2715' (2024-02-22) • Updated input 'microvm/spectrum': 'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=97e2f3429ee61dc37664b4d096b2fec48a57b691' (2023-12-22) → 'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=6d0e73864d28794cdbd26ab7b37259ab0e1e044c' (2024-02-19) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/106d3fec43bcea19cb2e061ca02531d54b542ce3' (2024-02-16) → 'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/3d6647bf9d1f8e537b0d026c51ea25c0cdd92055' (2024-02-21) → 'github:oxalica/rust-overlay/67853eda5dfe64922b9deb0ebc246a846fe177c7' (2024-02-23) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.gitattributes | ||
.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 |