No description
Erwin Boskma
40f93b4d6f
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/be98cffef02e5ebf438ea80b34b86e669c48eff1' (2023-09-12) → 'github:nix-community/disko/9f29cedac79d0acf07b6341f9112f46dec3abb8f' (2023-09-18) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/844afe34cbe49d83e7ae016564db4f72237a0bfa' (2023-09-13) → 'github:nix-community/emacs-overlay/c724333b2d3235b01101d62908ed1d43d18ac515' (2023-09-18) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/9a74ffb2ca1fc91c6ccc48bd3f8cbc1501bf7b8a' (2023-09-11) → 'github:NixOS/nixpkgs/5d017a8822e0907fb96f7700a319f9fe2434de02' (2023-09-17) • Updated input 'home-manager': 'github:nix-community/home-manager/a0ddf43b6268f1717afcda54133dea30435eb178' (2023-09-13) → 'github:nix-community/home-manager/e63a6b34792884bfe4056d1ef561b5611589b8ad' (2023-09-18) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/ca41b8a227dd235b1b308217f116c7e6e84ad779' (2023-09-11) → 'github:NixOS/nixos-hardware/161b027169b19d3a0ad6bd0a8948edf0c0fb0f64' (2023-09-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3a2786eea085f040a66ecde1bc3ddc7099f6dbeb' (2023-09-11) → 'github:nixos/nixpkgs/ace5093e36ab1e95cb9463863491bee90d5a4183' (2023-09-15) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/0282ed291f0e25f30770df5d3f1ca33908ce44a4' (2023-09-13) → 'github:oxalica/rust-overlay/b87a14abea512d956f0b89d0d8a1e9b41f3e20ff' (2023-09-18) • Updated input 'sops': 'github:Mic92/sops-nix/ea208e55f8742fdcc0986b256bdfa8986f5e4415' (2023-09-12) → 'github:Mic92/sops-nix/4d284ca58ce5f48df79d99ab75b1ae3c3032b9ad' (2023-09-18) |
||
---|---|---|
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 |