No description
Erwin Boskma
d250c79a63
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/d092f0b653985d6cb1d7c828ff2ac602a36b7e4e' (2023-04-07) → 'github:nix-community/emacs-overlay/0a91697aae6acefe1d5c9b3654ea273b53539380' (2023-04-09) • Updated input 'flake-utils': 'github:numtide/flake-utils/411e8764155aa9354dbcd6d5faaeb97e9e3dce24' (2023-04-06) → 'github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412' (2023-04-09) • Added input 'flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Updated input 'home-manager': 'github:nix-community/home-manager/ec06f419af79207b33d797064dfb3fc9dbe1df4a' (2023-04-04) → 'github:nix-community/home-manager/440faf5ae472657ef2d8cc7756d77b6ab0ace68d' (2023-04-05) • Updated input 'microvm': 'github:astro/microvm.nix/d05d2b2e5ae938184efba4be575ef2d7bdf1ee5b' (2023-04-05) → 'github:astro/microvm.nix/b496028321ba11ca3e6eef286ca3915577f4b793' (2023-04-09) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/148fee317058fad8159619e9d6ccc8c0aa6d0fce' (2023-04-06) → 'github:NixOS/nixos-hardware/3006d2860a6ed5e01b0c3e7ffb730e9b293116e2' (2023-04-07) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9c8ff8b426a8b07b9e0a131ac3218740dc85ba1e' (2023-04-05) → 'github:nixos/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d' (2023-04-08) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/d8480d44ffd2e1b5440a3cf74ce6fb299557e9a0' (2023-04-06) → 'github:cachix/pre-commit-hooks.nix/2144d9ddcb550d6dce64a2b44facdc8c5ea2e28a' (2023-04-08) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/d1dd2791698a60837ed829a49cd0e4663f5da801' (2023-04-07) → 'github:oxalica/rust-overlay/9e55ff64c777f05310d83be0a0cbf0c7e299f63a' (2023-04-09) • Updated input 'sops': 'github:Mic92/sops-nix/b93eb910f768f9788737bfed596a598557e5625d' (2023-04-02) → 'github:Mic92/sops-nix/ddc6f124cb9be22d2ba066064c28bc19039a6bce' (2023-04-09) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/c1e2efaca8d8a3db6a36f652765d6c6ba7bb8fae' (2023-04-01) → 'github:NixOS/nixpkgs/e45cc0138829ad86e7ff17a76acf2d05e781e30a' (2023-04-09) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
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 exa 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 |