No description
Erwin Boskma
f8c24149d7
• Updated input 'deploy-rs': 'github:serokell/deploy-rs/a5619f5660a00f58c2b7c16d89058e92327ac9b8' (2022-12-29) → 'github:serokell/deploy-rs/8c9ea9605eed20528bf60fae35a2b613b901fd77' (2023-01-19) • Updated input 'disko': 'github:nix-community/disko/b1f64612554a1fd9b1892d16c7d96aeda302e957' (2023-01-16) → 'github:nix-community/disko/e1eba38e8ea3ee6ca8ffef57668d4a37fff19ca4' (2023-01-19) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/c02cfe11649018c3e31c8c4a4d91233b1e62d487' (2023-01-18) → 'github:nix-community/emacs-overlay/ad839f83ca7ceb0f5f0b301da847366ecf57ef49' (2023-01-20) • Updated input 'home-manager': 'github:nix-community/home-manager/2c29ae48f9a149151bdd82f429ac61d4412c312a' (2023-01-18) → 'github:nix-community/home-manager/7026e1a934abfa02623c9870378dbcdac3cd7f80' (2023-01-18) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/428063ff2304962387803fd59e5da8b9b82710cc' (2023-01-18) → 'github:Hyprwm/Hyprland/5112056fdbda989191310364444f328240bbf6f1' (2023-01-19) • Updated input 'nil': 'github:oxalica/nil/0eff7fc333e3c0c064a6339834b44feae00fe64a' (2023-01-02) → 'github:oxalica/nil/3f84b783d36d564c4380631ab48d771e2558cb81' (2023-01-19) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/3e42a77571cc0463efa470dbcffa063977a521ab' (2023-01-18) → 'github:cachix/pre-commit-hooks.nix/53e766957b73298fa68b47478c48cbcc005cc18a' (2023-01-19) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/eecc44934a0f6c02c02856b38bd3b6af3bec0870' (2023-01-18) → 'github:oxalica/rust-overlay/bf982fcabe4f1c62fb99094ee06af8cade0fe399' (2023-01-20) |
||
---|---|---|
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 |