No description
Erwin Boskma
0d5984a4d4
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/f9907fcf6df79a76ea7e3a3afe9340a672cb9c6e' (2023-09-09) → 'github:nix-community/disko/b54e2dc988b34fbad1a1180fe68b573a9d080df5' (2023-09-11) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/2276b94b3d43467372de17708ab3468a5821fcfc' (2023-09-09) → 'github:nix-community/emacs-overlay/42157ddb4e4a255d16e6a50a792893cbd1a3098c' (2023-09-11) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/4f77ea639305f1de0a14d9d41eef83313360638c' (2023-09-07) → 'github:NixOS/nixpkgs/4c8cf44c5b9481a4f093f1df3b8b7ba997a7c760' (2023-09-10) • Updated input 'home-manager': 'github:nix-community/home-manager/19c6a4081b14443420358262f8416149bd79561a' (2023-09-08) → 'github:nix-community/home-manager/f7848d3e5f15ed02e3f286029697e41ee31662d7' (2023-09-10) • Updated input 'microvm': 'github:astro/microvm.nix/25460d97cffffe24f565a9d654c4aab1848598b4' (2023-09-08) → 'github:astro/microvm.nix/c2ee8fd0fef00b3a019b08c42976ecef1e1cd103' (2023-09-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06) → 'github:nixos/nixpkgs/db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b' (2023-09-08) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/7e3517c03d46159fdbf8c0e5c97f82d5d4b0c8fa' (2023-08-17) → 'github:cachix/pre-commit-hooks.nix/4f883a76282bc28eb952570afc3d8a1bf6f481d7' (2023-09-10) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1b4fad9dccece45c25b9ebda607427d69a8f1eae' (2023-09-09) → 'github:oxalica/rust-overlay/6c520f2e31f4bebeb29cc4563543de7187013575' (2023-09-11) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.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 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 |