No description
Erwin Boskma
d468018e7b
• Updated input 'disko': 'github:nix-community/disko/9a8d4a049dbc25b5f55a243a564cb402d2a21518' (2023-03-10) → 'github:nix-community/disko/a683b848c3c9dd81e9639dc3fd9c5329fd4294a4' (2023-03-13) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/8be50d27360b033539b45cd3606a4278a55f69ec' (2023-03-11) → 'github:nix-community/emacs-overlay/b9274d63c2bc76e062a269f533c9f4a2bbf1e1d8' (2023-03-13) • Updated input 'home-manager': 'github:nix-community/home-manager/7224d7c54c5fc74cdf60b208af6148ed3295aa32' (2023-03-10) → 'github:nix-community/home-manager/7fe539dfbba8a158a455b54697d1bd7e97b37c60' (2023-03-13) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/253286669a115c4e63c3924eeec8391af2504c57' (2023-03-10) → 'github:Hyprwm/Hyprland/17deeb07ad4ce1b34bfe22524f9b248c5c6e01e6' (2023-03-13) • Updated input 'microvm': 'github:astro/microvm.nix/108f0c561eb4b140cac1ac7da7ba72867f62d174' (2023-03-08) → 'github:astro/microvm.nix/55667b89c0f2b60c8d95a203f3784d2dca2ea31a' (2023-03-12) • Updated input 'nil': 'github:oxalica/nil/457f6020be85b2af9f4fc9ede5ec7fa53aed588f' (2023-03-11) → 'github:oxalica/nil/2552c08e3967e3a5137d7d3db0af5166877d4630' (2023-03-11) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/0c4800d579af4ed98ecc47d464a5e7b0870c4b1f' (2023-03-10) → 'github:nixos/nixpkgs/5a1dc8acd977ff3dccd1328b7c4a6995429a656b' (2023-03-12) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1c8200cdc4c830d937fbf8b19e1f3e83daf3370a' (2023-03-11) → 'github:oxalica/rust-overlay/f25d4bc2f6a0a3f9a2f15d3b9e3edb0ee5099a3d' (2023-03-13) • Updated input 'sops': 'github:Mic92/sops-nix/1568702de0d2488c1e77011a9044de7fadec80c4' (2023-03-10) → 'github:Mic92/sops-nix/9e98f7a442b0e318de9cce757675c2ab922bdf2b' (2023-03-12) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/d51554151a91cd4543a7620843cc378e3cbc767e' (2023-03-04) → 'github:NixOS/nixpkgs/c34fc09c77172c4189df4594a0749e25a23cdd9b' (2023-03-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 |