No description
Erwin Boskma
f397fffd0f
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/9f29cedac79d0acf07b6341f9112f46dec3abb8f' (2023-09-18) → 'github:nix-community/disko/f43f106e91fe4f6591cf80cc5c8179e841c6e922' (2023-09-20) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c724333b2d3235b01101d62908ed1d43d18ac515' (2023-09-18) → 'github:nix-community/emacs-overlay/27ee1c63e562bfe1655432ce4dd0124fc9e8b7d7' (2023-09-21) • Updated input 'home-manager': 'github:nix-community/home-manager/e63a6b34792884bfe4056d1ef561b5611589b8ad' (2023-09-18) → 'github:nix-community/home-manager/408ba13188ff9ce309fa2bdd2f81287d79773b00' (2023-09-20) • Updated input 'microvm': 'github:astro/microvm.nix/03e7f11cf915a911277c2cdea5d7da9717597aa2' (2023-09-12) → 'github:astro/microvm.nix/2fd97e40021284ad6b2446f797229dac2698acd1' (2023-09-20) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/161b027169b19d3a0ad6bd0a8948edf0c0fb0f64' (2023-09-18) → 'github:NixOS/nixos-hardware/cb4dc98f776ddb6af165e6f06b2902efe31ca67a' (2023-09-19) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/ace5093e36ab1e95cb9463863491bee90d5a4183' (2023-09-15) → 'github:nixos/nixpkgs/5ba549eafcf3e33405e5f66decd1a72356632b96' (2023-09-19) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/b87a14abea512d956f0b89d0d8a1e9b41f3e20ff' (2023-09-18) → 'github:oxalica/rust-overlay/23224b680af0b27b320adec2a0dae4eef29350e6' (2023-09-21) • Updated input 'sops': 'github:Mic92/sops-nix/4d284ca58ce5f48df79d99ab75b1ae3c3032b9ad' (2023-09-18) → 'github:Mic92/sops-nix/2f375ed8702b0d8ee2430885059d5e7975e38f78' (2023-09-21) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/5601118d39ca9105f8e7b39d4c221d3388c0419d' (2023-09-02) → 'github:NixOS/nixpkgs/596611941a74be176b98aeba9328aa9d01b8b322' (2023-09-16) |
||
---|---|---|
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 |