No description
Erwin Boskma
7855aa85ff
• Updated input 'disko': 'github:nix-community/disko/da20419aabc6f3ea5088d3b6b1d132ea8a50619c' (2023-02-03) → 'github:nix-community/disko/b1a4ecb8ca5f9e5850514cc9ceef3c8aa2e97d6f' (2023-02-06) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/0d630ac0f6430797b885a86a6699e8c75093c513' (2023-02-04) → 'github:nix-community/emacs-overlay/cf267241b56b425d20faed46ab8e16dd0434a663' (2023-02-06) • Updated input 'home-manager': 'github:nix-community/home-manager/e2c1756e3ae001ca8696912016dd31cb1503ccf3' (2023-02-03) → 'github:nix-community/home-manager/c43d4a3d6d9ef8ddbe2438362f5c775b4186000b' (2023-02-05) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/760b37f71d200643d3e267472e5cc290d38d1a53' (2023-02-04) → 'github:Hyprwm/Hyprland/4a5c3c4861fb503c7ecb6dcfc86aeb547aa3fb7f' (2023-02-05) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/06999209d7a0043d4372e38f57cffae00223d592' (2023-02-03) → 'github:nixos/nixpkgs/0591d6b57bfeb55dfeec99a671843337bc2c3323' (2023-02-04) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1f1d13846ae88826391e5d65d85247a30982671b' (2023-02-04) → 'github:oxalica/rust-overlay/cccf15dce049eb0be24060ed461c251552b2fb4d' (2023-02-06) • Updated input 'sops': 'github:Mic92/sops-nix/a81ce6c961480b3b93498507074000c589bd9d60' (2023-02-01) → 'github:Mic92/sops-nix/4d16c18787ba8ff80c1ff8db25c5ca56f68ceed3' (2023-02-05) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/a3a1400571e3b9ccc270c2e8d36194cf05aab6ce' (2023-02-01) → 'github:NixOS/nixpkgs/e32c33811815ca4a535a16faf1c83eeb4493145b' (2023-02-05) |
||
---|---|---|
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 |