No description
Erwin Boskma
52df1997dc
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/5fd852c4155a689098095406500d0ae3d04654a8?narHash=sha256-c9I3i1CwZ10SoM5npQQVnfwgvB86jAS3lT4ZqkRoSOI%3D' (2024-11-14) → 'github:nix-community/disko/cb64993826fa7a477490be6ccb38ba1fa1e18fa8?narHash=sha256-f3SSp1axoOk0NAI7oFdRzbxG2XPBSIXC%2B/DaAXnvS1A%3D' (2024-11-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/45023e6456ddc236499178ac9914d43d478bb499?narHash=sha256-/Yd5ydr2%2BW/lWWP8Tm9oVtlhUp2jr3qiXO57bIWMMHw%3D' (2024-11-14) → 'github:nix-community/emacs-overlay/f6d0e3fca9097209f44dcfba704cda5d2c4be957?narHash=sha256-X4X/9Rd8w4Q/auq6b2JdaxoAAU38njniVrJwstdUxH0%3D' (2024-11-16) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/689fed12a013f56d4c4d3f612489634267d86529?narHash=sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI%3D' (2024-11-12) → 'github:NixOS/nixpkgs/c21b77913ea840f8bcf9adf4c41cecc2abffd38d?narHash=sha256-XUO0JKP1hlww0d7mm3kpmIr4hhtR4zicg5Wwes9cPMg%3D' (2024-11-15) • Updated input 'home-manager': 'github:nix-community/home-manager/35b055009afd0107b69c286fca34d2ad98940d57?narHash=sha256-2EckCJn4wxran/TsRiCOFcmVpep2m9EBKl99NBh2GnM%3D' (2024-11-13) → 'github:nix-community/home-manager/1d0862ee2d7c6f6cd720d6f32213fa425004be10?narHash=sha256-Qq2YZZaDTB3FZLWU/Hgh1uuWlUBl3cMLGB99bm7rFUM%3D' (2024-11-14) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/f6581f1c3b137086e42a08a906bdada63045f991?narHash=sha256-T9V7CTucjRZ4Qc6pUEV/kpgNGzQbHWfGcfK6JJLfUeI%3D' (2024-11-12) → 'github:NixOS/nixos-hardware/c2c275fbb2e656948ba6e1f67b8ddd430f158c5f?narHash=sha256-teFd31vsE/0Z0WR6XVeKhKPw6Eyb2gXGpG0tjpMfBDM%3D' (2024-11-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/27570abfd3461875f11fc07c9b01c141a6332b4f?narHash=sha256-wr8OOqgw7M1pWfe4W7WA5lErzOVMg3zvrrxx/dy/nPo%3D' (2024-11-14) → 'github:oxalica/rust-overlay/f6c4c2a7b8969c2b172847b3ef474e0d3bd8bdce?narHash=sha256-3R48B%2BBVeZ8IWsXF7TdRm441RsdJt21yQ5ZgxuNTXYc%3D' (2024-11-16) • Updated input 'sops': 'github:Mic92/sops-nix/4c91d52db103e757fc25b58998b0576ae702d659?narHash=sha256-HC0anOL%2BKmUQ2hdRl0AtunbAckasxrkn4VLmxbW/WaA%3D' (2024-11-11) → 'github:Mic92/sops-nix/d2bd7f433b28db6bc7ae03d5eca43564da0af054?narHash=sha256-Zd/Uukvpcu26M6YGhpbsgqm6LUSLz%2BQ8mDZ5LOEGdiE%3D' (2024-11-16) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
incus-conf | ||
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 |