No description
Erwin Boskma
0cc41287d4
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/b54e2dc988b34fbad1a1180fe68b573a9d080df5' (2023-09-11) → 'github:nix-community/disko/be98cffef02e5ebf438ea80b34b86e669c48eff1' (2023-09-12) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/42157ddb4e4a255d16e6a50a792893cbd1a3098c' (2023-09-11) → 'github:nix-community/emacs-overlay/844afe34cbe49d83e7ae016564db4f72237a0bfa' (2023-09-13) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/4c8cf44c5b9481a4f093f1df3b8b7ba997a7c760' (2023-09-10) → 'github:NixOS/nixpkgs/9a74ffb2ca1fc91c6ccc48bd3f8cbc1501bf7b8a' (2023-09-11) • Updated input 'flake-utils': 'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23) → 'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12) • Updated input 'home-manager': 'github:nix-community/home-manager/f7848d3e5f15ed02e3f286029697e41ee31662d7' (2023-09-10) → 'github:nix-community/home-manager/a0ddf43b6268f1717afcda54133dea30435eb178' (2023-09-13) • Updated input 'microvm': 'github:astro/microvm.nix/c2ee8fd0fef00b3a019b08c42976ecef1e1cd103' (2023-09-10) → 'github:astro/microvm.nix/03e7f11cf915a911277c2cdea5d7da9717597aa2' (2023-09-12) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/793de77d9f83418b428e8ba70d1e42c6507d0d35' (2023-09-03) → 'github:NixOS/nixos-hardware/ca41b8a227dd235b1b308217f116c7e6e84ad779' (2023-09-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b' (2023-09-08) → 'github:nixos/nixpkgs/3a2786eea085f040a66ecde1bc3ddc7099f6dbeb' (2023-09-11) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/6c520f2e31f4bebeb29cc4563543de7187013575' (2023-09-11) → 'github:oxalica/rust-overlay/0282ed291f0e25f30770df5d3f1ca33908ce44a4' (2023-09-13) • Updated input 'sops': 'github:Mic92/sops-nix/faf21ac162173c2deb54e5fdeed002a9bd6e8623' (2023-09-05) → 'github:Mic92/sops-nix/ea208e55f8742fdcc0986b256bdfa8986f5e4415' (2023-09-12) |
||
---|---|---|
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 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 |