No description
Erwin Boskma
1973542e71
• Updated input 'disko': 'github:nix-community/disko/68060d2cd1da2baa828d1caf267f128808bc9c81' (2023-02-27) → 'github:nix-community/disko/efc8dd8083da15433ad226baad110aea4fca634b' (2023-03-02) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/545383bd7de8e3f100356fea217698379d8f5c31' (2023-02-28) → 'github:nix-community/emacs-overlay/6d54cfde44494da2396678d82bb61eeb0a3fa392' (2023-03-04) • Updated input 'home-manager': 'github:nix-community/home-manager/ef7d316578367ed7732a21eede6c79546a36124f' (2023-02-28) → 'github:nix-community/home-manager/b9e3a29864798d55ec1d6579ab97876bb1ee9664' (2023-03-02) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/52878161e4bbe77ba9e73c44bab03d16356e36f7' (2023-03-01) → 'github:Hyprwm/Hyprland/c44409932546e73f527a0ff405fe1df190921c83' (2023-03-04) • Updated input 'hyprland/wlroots': 'gitlab:wlroots/wlroots/677a3f2f8847ed2de49dd60868f9d9487a546f58' (2023-02-02) → 'gitlab:wlroots/wlroots/5ae17de23f5fd9bb252a698f3771c840280e2c05' (2023-03-02) • Updated input 'nil': 'github:oxalica/nil/6723d2982d33e9d698ae5c3b0cfcccd9292b4eff' (2023-02-26) → 'github:oxalica/nil/0f918f956fefee72eff801cdcfc0c7cce5be586a' (2023-03-03) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/7f5639fa3b68054ca0b062866dc62b22c3f11505' (2023-02-26) → 'github:nixos/nixpkgs/a08d6979dd7c82c4cef0dcc6ac45ab16051c1169' (2023-03-01) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/2bd861ab81469428d9c823ef72c4bb08372dd2c4' (2023-02-23) → 'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/f388187efb41ce4195b2f4de0b6bb463d3cd0a76' (2023-03-01) → 'github:oxalica/rust-overlay/c25d3e1951863ac0061d47a3fabf9aa7c91db5e5' (2023-03-04) • Updated input 'sops': 'github:Mic92/sops-nix/27018a9084006b8371b1f833882adfb85bd23004' (2023-02-28) → 'github:Mic92/sops-nix/128e9b29ddd88ceb634a28f7dbbfee7b895f005f' (2023-03-03) |
||
---|---|---|
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 |