No description
Erwin Boskma
a45f2c1ecf
• Updated input 'disko': 'github:nix-community/disko/25c5376b02597fa269eb30ba9cd2cb86e0bb99d8' (2023-03-21) → 'github:nix-community/disko/eb5def310c7331545e72090b4cda6cb0255b870d' (2023-03-24) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/add5c977ba4e6a78d00b8f25277809e2301a5c29' (2023-03-21) → 'github:nix-community/emacs-overlay/f03b172233e1bf1fb2ffbc543b86aae00fbad444' (2023-03-24) • Updated input 'home-manager': 'github:nix-community/home-manager/e386ec640e16dc91120977285cb8c72c77078164' (2023-03-21) → 'github:nix-community/home-manager/363c46b2480f1b73ec37cf68caac61f5daa82a2e' (2023-03-22) • Updated input 'microvm': 'github:astro/microvm.nix/213475e01136d316ed58d5fe38a361cc6b13a661' (2023-03-21) → 'github:astro/microvm.nix/31d3c1a05fba175e5d96f16256296ad4088ca9f5' (2023-03-23) • Updated input 'microvm/fenix': 'github:nix-community/fenix/20d2fcd01df0c3db0429112ab3d911ee0bc3a3b5' (2023-02-24) → 'github:nix-community/fenix/49237f7a76b98954306e77a7bd42f6491ad5c6a7' (2023-03-22) • Updated input 'microvm/fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/27239fbb58a115915ffc1ce65ededc951eb00fd2' (2023-02-21) → 'github:rust-lang/rust-analyzer/3321799e8fac622db50fe8c3284062f7d0f1bf53' (2023-03-21) • Updated input 'naersk': 'github:nix-community/naersk/5c8dbab3d9fe3b3e5796f505bda2af9414bf1ddd' (2023-03-21) → 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23) • Updated input 'nil': 'github:oxalica/nil/e7045f1779fd202a3316f84b864c304f339cccea' (2023-03-13) → 'github:oxalica/nil/73fda843416741f870a97c23867f27efb9fd9f20' (2023-03-24) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/a4bc66709604ab78abc575b60baa6d23ae027a59' (2023-03-19) → 'github:NixOS/nixos-hardware/648021dcb2b65498eed3ea3a7339cdfc3bea4d82' (2023-03-23) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/60c1d71f2ba4c80178ec84523c2ca0801522e0a6' (2023-03-19) → 'github:nixos/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/f5efdf14ed378aac26cadded4d0c00ca91974d32' (2023-03-21) → 'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 |