No description
Erwin Boskma
6f2114c312
• Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/5959aa48e3406a4f74281e7dc6136460d0a55a2b' (2023-01-17) → 'github:nix-community/emacs-overlay/c02cfe11649018c3e31c8c4a4d91233b1e62d487' (2023-01-18) • Updated input 'home-manager': 'github:nix-community/home-manager/bd3efacb82c721edad1ce9eda583df5fb62ab00a' (2023-01-17) → 'github:nix-community/home-manager/2c29ae48f9a149151bdd82f429ac61d4412c312a' (2023-01-18) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/c31c627cf85ea4fd40c1647c84d89b5e6f186785' (2023-01-17) → 'github:Hyprwm/Hyprland/428063ff2304962387803fd59e5da8b9b82710cc' (2023-01-18) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/496e4505c2ddf5f205242eae8064d7d89cd976c0' (2023-01-13) → 'github:cachix/pre-commit-hooks.nix/3e42a77571cc0463efa470dbcffa063977a521ab' (2023-01-18) • Updated input 'pre-commit-hooks/flake-compat': 'github:edolstra/flake-compat/009399224d5e398d03b22badca40a37ac85412a1' (2022-11-17) → 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) • Updated input 'pre-commit-hooks/nixpkgs-stable': 'github:NixOS/nixpkgs/d513b448cc2a6da2c8803e3c197c9fc7e67b19e3' (2022-12-17) → 'github:NixOS/nixpkgs/2f9fd351ec37f5d479556cd48be4ca340da59b8f' (2023-01-15) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/4e0f9b8a5102387f8d19901bced16a256a6ccdc7' (2023-01-17) → 'github:oxalica/rust-overlay/eecc44934a0f6c02c02856b38bd3b6af3bec0870' (2023-01-18) |
||
---|---|---|
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 |