No description
Erwin Boskma
7da842e9a4
• Updated input 'disko': 'github:nix-community/disko/d4ad9595432959440984b2ba33064cfe3399d0e3' (2023-01-12) → 'github:nix-community/disko/b1f64612554a1fd9b1892d16c7d96aeda302e957' (2023-01-16) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b14ac8cc285517482b2fd8e20db355a3980f59f0' (2023-01-13) → 'github:nix-community/emacs-overlay/5959aa48e3406a4f74281e7dc6136460d0a55a2b' (2023-01-17) • Updated input 'home-manager': 'github:nix-community/home-manager/176e455371a8371586e8a3ff0d56ee9f3ca2324e' (2023-01-10) → 'github:nix-community/home-manager/bd3efacb82c721edad1ce9eda583df5fb62ab00a' (2023-01-17) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/9c77415cda40eb334dd9306c504c0003dc14b53f' (2023-01-13) → 'github:Hyprwm/Hyprland/c31c627cf85ea4fd40c1647c84d89b5e6f186785' (2023-01-17) • Updated input 'hyprland/wlroots': 'gitlab:wlroots/wlroots/dc7cc98cf21a8dc19ab8895505500e3700646af0' (2022-12-16) → 'gitlab:wlroots/wlroots/5f264a7d6c8af27d41ff440c05262b022c055593' (2023-01-04) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/88016c96c3c338aa801695cdd9f186820bcfe4d6' (2023-01-11) → 'github:NixOS/nixos-hardware/7bd6b87b3712e68007823e8dd5c37ee9b114fee3' (2023-01-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e' (2023-01-11) → 'github:nixos/nixpkgs/6dccdc458512abce8d19f74195bb20fdb067df50' (2023-01-15) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ca474ccdd5f81ed742328e15dae38bb57a1006e3' (2023-01-13) → 'github:oxalica/rust-overlay/4e0f9b8a5102387f8d19901bced16a256a6ccdc7' (2023-01-17) • Updated input 'sops': 'github:Mic92/sops-nix/32187b33ac6ec9b628dcd08dd941a715e6241dda' (2023-01-12) → 'github:Mic92/sops-nix/e18eefd2b133a58309475298052c341c08470717' (2023-01-15) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/9f11a2df77cb945c115ae2a65f53f38121597d73' (2023-01-07) → 'github:NixOS/nixpkgs/7c65528c3f8462b902e09d1ccca23bb9034665c2' (2023-01-15) |
||
---|---|---|
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 |