No description
Erwin Boskma
f094b0a79d
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/58cd832497f9c87cb4889744b86aba4284fd0474?narHash=sha256-xzt7tb4YUw6VZXSCGw4sukirJSfYsIcFyvmhK5KMiKw%3D' (2024-10-26) → 'github:nix-community/disko/3979285062d6781525cded0f6c4ff92e71376b55?narHash=sha256-o5m5WzvY6cGIDupuOvjgNSS8AN6yP2iI9MtUC6q/uos%3D' (2024-10-29) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/7f86b977ad3e397c8cf37be53a6578ec5cd109c7?narHash=sha256-nJ1V%2BEFn5OYoAdcIQpO9AT8UZjulFXYBmBSblIZoH9U%3D' (2024-10-26) → 'github:nix-community/emacs-overlay/88aa67a24ebef4001b58945bdc2852f427f1abc9?narHash=sha256-r7ecq%2BMCAU4kQCze6l9ZAooaGkag1ml7mI/aXGx7eH8%3D' (2024-10-30) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/32e940c7c420600ef0d1ef396dc63b04ee9cad37?narHash=sha256-BAuPWW%2B9fa1moZTU%2BjFh%2B1cUtmsuF8asgzFwejM4wac%3D' (2024-10-23) → 'github:NixOS/nixpkgs/64b80bfb316b57cdb8919a9110ef63393d74382a?narHash=sha256-9z8oOgFZiaguj%2Bbbi3k4QhAD6JabWrnv7fscC/mt0KE%3D' (2024-10-28) • Updated input 'home-manager': 'github:nix-community/home-manager/93435d27d250fa986bfec6b2ff263161ff8288cb?narHash=sha256-nL9nzNE5/re/P%2BzOv7NX6bRm5e%2BDeS1HIufQUJ01w20%3D' (2024-10-25) → 'github:nix-community/home-manager/e83414058edd339148dc142a8437edb9450574c8?narHash=sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0%3D' (2024-10-27) • Updated input 'microvm': 'github:astro/microvm.nix/ef42cfface9940b9ce9614307670b60cdbda33f6?narHash=sha256-ndjFy5kfhn9MoOOSzGnZ7f2FwRUUY1EJYwXGxK8DzsQ%3D' (2024-10-23) → 'github:astro/microvm.nix/46ed88edeee85cb80063c1a511318fe39f9f846f?narHash=sha256-V9ON7dVdjBg8mwx78chSSyBZsw%2BQ8m%2BHO9UfUOIo9L8%3D' (2024-10-29) • Updated input 'microvm/spectrum': 'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=fb59d42542049f586c84b0f8bb86ff3be338e9d3' (2024-07-06) → 'git+https://spectrum-os.org/git/spectrum?ref=refs/heads/main&rev=f1d94ee7029af18637dbd5fdf4749621533693fa' (2024-10-26) • Updated input 'nixos-facter-modules': 'github:numtide/nixos-facter-modules/9f2a45b372830d28412160413d1d83f5ee11cc2f?narHash=sha256-io1UeGaV2HcmK1zCZPnawJu3CxKHhiZ83NBJ%2BqshWIo%3D' (2024-10-12) → 'github:numtide/nixos-facter-modules/15b6531d44aa6f0bbd2fd8309cd2a6d7f183ba32?narHash=sha256-AzP%2BtrH/ykBJGTx3twkpuwbkhFSmsY1PJDQtRmK4k4c%3D' (2024-10-27) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/e8a2f6d5513fe7b7d15701b2d05404ffdc3b6dda?narHash=sha256-u3Of8xRkN//me8PU%2BRucKA59/6RNy4B2jcGAF36P4jI%3D' (2024-10-24) → 'github:NixOS/nixos-hardware/07d15e8990d5d86a631641b4c429bc0a7400cfb8?narHash=sha256-z5ILcmwMtiCoHTXS1KsQWqigO7HJO8sbyK7f7wn9F/E%3D' (2024-10-29) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2768c7d042a37de65bb1b5b3268fc987e534c49d?narHash=sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4%3D' (2024-10-23) → 'github:nixos/nixpkgs/18536bf04cd71abd345f9579158841376fdd0c5a?narHash=sha256-RP%2BOQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM%3D' (2024-10-25) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/17cadbc36da05e75197d082decb382a5f4208e30?narHash=sha256-eXqxxbOagphPfjPptSlv0pQONB3fH15CQ4G8uCu1BW4%3D' (2024-10-26) → 'github:oxalica/rust-overlay/7509d76ce2b3d22b40bd25368b45c0a9f7f36c89?narHash=sha256-9pydem8OVxa0TwjUai1PJe0yHAJw556CWCEwyoAq8Ik%3D' (2024-10-30) • Updated input 'sops': 'github:Mic92/sops-nix/b2211d1a537136cc1d0d5c0af391e8712016b34e?narHash=sha256-3tjYImjVzsSM4sU%2BwTySF94Yop1spI/XomMBEpljKvQ%3D' (2024-10-26) → 'github:Mic92/sops-nix/1666d16426abe79af5c47b7c0efa82fd31bf4c56?narHash=sha256-qm0uCtM9bg97LeJTKQ8dqV/FvqRN%2BompyW4GIJruLuw%3D' (2024-10-27) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/bb8c2cf7ea0dd2e18a52746b2c3a5b0c73b93c22?narHash=sha256-66RHecx%2BzohbZwJVEPF7uuwHeqf8rykZTMCTqIrOew4%3D' (2024-10-19) → 'github:NixOS/nixpkgs/cd3e8833d70618c4eea8df06f95b364b016d4950?narHash=sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk%3D' (2024-10-26) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/aac86347fb5063960eccb19493e0cadcdb4205ca?narHash=sha256-XGOvuIPW1XRfPgHtGYXd5MAmJzZtOuwlfKDgxX5KT3s%3D' (2024-10-22) → 'github:numtide/treefmt-nix/9ef337e492a5555d8e17a51c911ff1f02635be15?narHash=sha256-LqHYIxMrl/1p3/kvm2ir925tZ8DkI0KA10djk8wecSk%3D' (2024-10-28) |
||
---|---|---|
.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 |