No description
Erwin Boskma
70a51c21a9
• Updated input 'disko': 'github:nix-community/disko/b1a4ecb8ca5f9e5850514cc9ceef3c8aa2e97d6f' (2023-02-06) → 'github:nix-community/disko/072aa7879a537f2f1e8d44108dc6f30990f7297c' (2023-02-13) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/cf267241b56b425d20faed46ab8e16dd0434a663' (2023-02-06) → 'github:nix-community/emacs-overlay/09ebba158540ba3171b5f319b71427b51db8794b' (2023-02-13) • Updated input 'home-manager': 'github:nix-community/home-manager/c43d4a3d6d9ef8ddbe2438362f5c775b4186000b' (2023-02-05) → 'github:nix-community/home-manager/2dce7f1a55e785a22d61668516df62899278c9e4' (2023-02-09) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/4a5c3c4861fb503c7ecb6dcfc86aeb547aa3fb7f' (2023-02-05) → 'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12) • Updated input 'microvm': 'github:astro/microvm.nix/0a3d48e06b8c04beb3de0a3283bd1ef29fe4a47d' (2023-01-26) → 'github:astro/microvm.nix/5882c4da762d1d5414aaa599f8f671e58100bccf' (2023-02-09) • Updated input 'nil': 'github:oxalica/nil/1a15174958729ca578db517e735479ed5fb963db' (2023-02-04) → 'github:oxalica/nil/ce2e0b5d60fe497134050796f7d12ffb6b50eb28' (2023-02-11) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/b7ac0a56029e4f9e6743b9993037a5aaafd57103' (2023-01-24) → 'github:NixOS/nixos-hardware/44ae00e02e8036a66c08f4decdece7e3bbbefee2' (2023-02-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0591d6b57bfeb55dfeec99a671843337bc2c3323' (2023-02-04) → 'github:nixos/nixpkgs/e5530aba13caff5a4f41713f1265b754dc2abfd8' (2023-02-11) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/5668d079583a5b594cb4e0cc0e6d84f1b93da7ae' (2023-02-02) → 'github:cachix/pre-commit-hooks.nix/15f2da96967d4c828ae678af50f75214372fd3ce' (2023-02-12) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/cccf15dce049eb0be24060ed461c251552b2fb4d' (2023-02-06) → 'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13) • Updated input 'sops': 'github:Mic92/sops-nix/4d16c18787ba8ff80c1ff8db25c5ca56f68ceed3' (2023-02-05) → 'github:Mic92/sops-nix/c5dab21d8706afc7ceb05c23d4244dcb48d6aade' (2023-02-12) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/e32c33811815ca4a535a16faf1c83eeb4493145b' (2023-02-05) → 'github:NixOS/nixpkgs/d863ca850a06d91365c01620dcac342574ecf46f' (2023-02-12) |
||
---|---|---|
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 |