No description
Erwin Boskma
3e796d62a5
• Updated input 'disko': 'github:nix-community/disko/072aa7879a537f2f1e8d44108dc6f30990f7297c' (2023-02-13) → 'github:nix-community/disko/9afae0ba3685656cbe1910b33fad758dd483137f' (2023-02-14) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/09ebba158540ba3171b5f319b71427b51db8794b' (2023-02-13) → 'github:nix-community/emacs-overlay/8e8c7ab6874c97b4d1c23a5a204b6743b40cee78' (2023-02-16) • Updated input 'flake-utils': 'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02) → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13) • Updated input 'home-manager': 'github:nix-community/home-manager/2dce7f1a55e785a22d61668516df62899278c9e4' (2023-02-09) → 'github:nix-community/home-manager/da72e6fc6b7dc0c3f94edbd310aae7cd95c678b5' (2023-02-14) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12) → 'github:Hyprwm/Hyprland/ab6a092dbc99bfdb2cd40f46e2f34f74cce88c15' (2023-02-15) • Updated input 'nil': 'github:oxalica/nil/ce2e0b5d60fe497134050796f7d12ffb6b50eb28' (2023-02-11) → 'github:oxalica/nil/944d5c335531778a1d7b54a97bf7fb5ec0c3e976' (2023-02-14) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e5530aba13caff5a4f41713f1265b754dc2abfd8' (2023-02-11) → 'github:nixos/nixpkgs/545c7a31e5dedea4a6d372712a18e00ce097d462' (2023-02-13) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/15f2da96967d4c828ae678af50f75214372fd3ce' (2023-02-12) → 'github:cachix/pre-commit-hooks.nix/5f0cba88ac4d6dd8cad5c6f6f1540b3d6a21a798' (2023-02-16) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13) → 'github:oxalica/rust-overlay/3bab7ae4a80de02377005d611dc4b0a13082aa7c' (2023-02-16) |
||
---|---|---|
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 |