No description
Erwin Boskma
0566931d38
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/00e79db0e791b9fd393eb98068135cb08d33684b?narHash=sha256-0r%2Ba%2BL/KCZjeguYyLuog7/7EKqyAbgBmHCRDmUEbom8%3D' (2024-10-09) → 'github:nix-community/emacs-overlay/141d26694d12456d2012cbec704a979902ab6ccd?narHash=sha256-g3kUnceXuCz%2BX3LNIJqECdmBWLKmhc3bWUpDLXC%2BjtQ%3D' (2024-10-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c31898adf5a8ed202ce5bea9f347b1c6871f32d1?narHash=sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw%3D' (2024-10-06) → 'github:nixos/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7?narHash=sha256-9UTxR8eukdg%2BXZeHgxW5hQA9fIKHsKCdOIUycTryeVw%3D' (2024-10-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/c79229c66605b70c9be9d67652d3196b638050c7?narHash=sha256-anD4%2B6yZc7TRuaqPesWJa67Mzyq3ruR6YTpRDt%2BVhHc%3D' (2024-10-09) → 'github:oxalica/rust-overlay/94749eee5a2b351b6893d5bddb0a18f7f01251ac?narHash=sha256-GY755PX8CbGH3O9iKqauhkFTdP9WSKcOfOkZBe3SOqw%3D' (2024-10-10) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |