No description
Erwin Boskma
ccaef414d2
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/cfec7f9501cc0e001f49d725a7cd733af7deb2ed' (2023-03-31) → 'github:nix-community/emacs-overlay/dce15e40f673c6ba58fc40a0a59587f19476b20b' (2023-04-03) • Updated input 'home-manager': 'github:nix-community/home-manager/67b97020b6970d39b4126a7870063d11337ecb80' (2023-03-31) → 'github:nix-community/home-manager/ddd8866c0306c48f465e7f48432e6f1ecd1da7f8' (2023-04-01) • Updated input 'microvm': 'github:astro/microvm.nix/31d3c1a05fba175e5d96f16256296ad4088ca9f5' (2023-03-23) → 'github:astro/microvm.nix/f968ea83bdc542fd5e81e4bb1d726986098095b1' (2023-04-02) • Removed input 'microvm/fenix' • Removed input 'microvm/fenix/nixpkgs' • Removed input 'microvm/fenix/rust-analyzer-src' • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9a6aabc4740790ef3bbb246b86d029ccf6759658' (2023-03-29) → 'github:nixos/nixpkgs/e3652e0735fbec227f342712f180f4f21f0594f2' (2023-03-30) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/aa480d799023141e1b9e5d6108700de63d9ad002' (2023-03-31) → 'github:oxalica/rust-overlay/7ec2ff598a172c6e8584457167575b3a1a5d80d8' (2023-04-03) • Updated input 'sops': 'github:Mic92/sops-nix/5b26523e28989a7f56953b695184070c06335814' (2023-03-28) → 'github:Mic92/sops-nix/b93eb910f768f9788737bfed596a598557e5625d' (2023-04-02) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/da26ae9f6ce2c9ab380c0f394488892616fc5a6a' (2023-03-25) → 'github:NixOS/nixpkgs/c1e2efaca8d8a3db6a36f652765d6c6ba7bb8fae' (2023-04-01) |
||
---|---|---|
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 |