No description
Erwin Boskma
18e4ac1ec3
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/f43f106e91fe4f6591cf80cc5c8179e841c6e922' (2023-09-20) → 'github:nix-community/disko/98a6ab9b52f8b06db9c3116b1761bbeaf9484408' (2023-09-22) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/27ee1c63e562bfe1655432ce4dd0124fc9e8b7d7' (2023-09-21) → 'github:nix-community/emacs-overlay/5a8b611e684b5299b6c782b5d022d86610accd7d' (2023-09-24) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/5d017a8822e0907fb96f7700a319f9fe2434de02' (2023-09-17) → 'github:NixOS/nixpkgs/e9b4b56e5a20ac322c0c01ccab7ec697ab076ea0' (2023-09-22) • Updated input 'home-manager': 'github:nix-community/home-manager/408ba13188ff9ce309fa2bdd2f81287d79773b00' (2023-09-20) → 'github:nix-community/home-manager/a88df2fb101778bfd98a17556b3a2618c6c66091' (2023-09-24) • Updated input 'microvm': 'github:astro/microvm.nix/2fd97e40021284ad6b2446f797229dac2698acd1' (2023-09-20) → 'github:astro/microvm.nix/8b1fda371d21f92609e8bb0d418bd6b1da84c155' (2023-09-22) • Updated input 'nil': 'github:oxalica/nil/4775e34c30f6101a9bb4364a0c7e4aae4ae43f11' (2023-09-08) → 'github:oxalica/nil/510bc6e9b41d39c81b9c815065cb5b7e23a2428c' (2023-09-23) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/cb4dc98f776ddb6af165e6f06b2902efe31ca67a' (2023-09-19) → 'github:NixOS/nixos-hardware/61283b30d11f27d5b76439d43f20d0c0c8ff5296' (2023-09-24) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5ba549eafcf3e33405e5f66decd1a72356632b96' (2023-09-19) → 'github:nixos/nixpkgs/e35dcc04a3853da485a396bdd332217d0ac9054f' (2023-09-22) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/23224b680af0b27b320adec2a0dae4eef29350e6' (2023-09-21) → 'github:oxalica/rust-overlay/164b96162f83ae3be6a9f5577053e0d53e5f4e6a' (2023-09-24) |
||
---|---|---|
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 |