No description
Erwin Boskma
f79d87cb36
Some checks failed
/ check (push) Failing after 23m57s
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b7c67b5f71db89ec27e1aa4413fbbcdf5bbfa451' (2024-02-05) → 'github:nix-community/emacs-overlay/552a5b1fbcde5557b2a011956fa36fdef056fdb7' (2024-02-07) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/25e3d4c0d3591c99929b1ec07883177f6ea70c9d' (2024-02-01) → 'github:NixOS/nixpkgs/9f2ee8c91ac42da3ae6c6a1d21555f283458247e' (2024-02-05) • Updated input 'home-manager': 'github:nix-community/home-manager/afcedcf2c8e424d0465e823cf833eb3adebe1db7' (2024-02-05) → 'github:nix-community/home-manager/f99eace7c167b8a6a0871849493b1c613d0f1b80' (2024-02-05) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/83e571bb291161682b9c3ccd48318f115143a550' (2024-02-02) → 'github:NixOS/nixos-hardware/6e5cc385fc8cf5ca6495d70243074ccdea9f64c7' (2024-02-06) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e92b6015881907e698782c77641aa49298330223' (2024-02-02) → 'github:nixos/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/61dfa5a8129f7edbe9150253c68f673f87b16fb1' (2024-02-05) → 'github:oxalica/rust-overlay/7a94fe7690d2bdfe1aab475382a505e14dc114a6' (2024-02-07) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.gitattributes | ||
.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 |