No description
Erwin Boskma
fdc17826ed
• Updated input 'disko': 'github:nix-community/disko/cf705ee16161b29b0e18983ecd8df3cb50f66142' (2023-03-06) → 'github:nix-community/disko/9a8d4a049dbc25b5f55a243a564cb402d2a21518' (2023-03-10) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/e1d5f416f3cc75f623d7809dc88de0ef09dc96cc' (2023-03-09) → 'github:nix-community/emacs-overlay/8be50d27360b033539b45cd3606a4278a55f69ec' (2023-03-11) • Updated input 'ha-now-playing': 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=b9b074836408e4c8ce15e157630d8e8098fc05cc' (2022-11-28) → 'git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main&rev=c45180c2b2204db535d51a04a8084167804eb029' (2023-03-10) • Updated input 'home-manager': 'github:nix-community/home-manager/36999b8d19eb6eebb41983ef017d7e0095316af2' (2023-03-08) → 'github:nix-community/home-manager/7224d7c54c5fc74cdf60b208af6148ed3295aa32' (2023-03-10) • Updated input 'hyprland': 'github:Hyprwm/Hyprland/92d2331170ce738056ad6bc63fa346174b954f66' (2023-03-08) → 'github:Hyprwm/Hyprland/253286669a115c4e63c3924eeec8391af2504c57' (2023-03-10) • Updated input 'nil': 'github:oxalica/nil/d1017418841c612552f73d1f670d87f57dc5e090' (2023-03-08) → 'github:oxalica/nil/457f6020be85b2af9f4fc9ede5ec7fa53aed588f' (2023-03-11) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/f6610997b0fc5ea5f9e142c348fca27497efe1c7' (2023-03-06) → 'github:NixOS/nixos-hardware/556101ff85bd6e20900ec73ee525b935154bc8ea' (2023-03-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c90c4025bb6e0c4eaf438128a3b2640314b1c58d' (2023-03-08) → 'github:nixos/nixpkgs/0c4800d579af4ed98ecc47d464a5e7b0870c4b1f' (2023-03-10) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03) → 'github:cachix/pre-commit-hooks.nix/1a20b9708962096ec2481eeb2ddca29ed747770a' (2023-03-09) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/cb22476a4d0e0b8b21900d220c2b1cf830821f9d' (2023-03-09) → 'github:oxalica/rust-overlay/1c8200cdc4c830d937fbf8b19e1f3e83daf3370a' (2023-03-11) • Updated input 'sops': 'github:Mic92/sops-nix/00e9e9cd46600d68dd98a392025d4894c3711b58' (2023-03-08) → 'github:Mic92/sops-nix/1568702de0d2488c1e77011a9044de7fadec80c4' (2023-03-10) |
||
---|---|---|
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 |