No description
Erwin Boskma
3f40ab0318
• 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/1046546c5d006fbe854e7944cd784b16e0d9494a' (2023-02-15) • Updated input 'flake-utils': 'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02) → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/6b7e409f05536e45baa3dabeab0df77d05c9a96f' (2023-02-12) → 'github:Hyprwm/Hyprland/f37866eb7ecf0ddb9b1924cbbc15af90143a24d3' (2023-02-14) • 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/1583077009b6ef4236d1899c0f43cf1ce1db8085' (2023-02-13) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13) → 'github:oxalica/rust-overlay/a619538647bd03e3ee1d7b947f7c11ff289b376e' (2023-02-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 |