No description
Erwin Boskma
e32f453ded
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/646ee25c25fffee122a66282861f5f56ad3e0fd9' (2023-10-02) → 'github:nix-community/disko/cde886a1c97ef2399b4f91409db045785020291f' (2023-10-05) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/205b18fcd20edad37e79c8598f6a799b70a6d4a3' (2023-10-03) → 'github:nix-community/emacs-overlay/c7ac54dd8409046d50d17c11d4fa29a782b37804' (2023-10-08) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/32dcb45f66c0487e92db8303a798ebc548cadedc' (2023-09-30) → 'github:NixOS/nixpkgs/5a237aecb57296f67276ac9ab296a41c23981f56' (2023-10-07) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/21928e6758af0a258002647d14363d5ffc85545b' (2023-10-01) → 'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03) • Updated input 'home-manager': 'github:nix-community/home-manager/6f9b5b83ad1f470b3d11b8a9fe1d5ef68c7d0e30' (2023-10-01) → 'github:nix-community/home-manager/3c1d8758ac3f55ab96dcaf4d271c39da4b6e836d' (2023-10-08) • Updated input 'microvm': 'github:astro/microvm.nix/c28a0e0dae496d7d0e29c8beec5c7e98e05e1c2c' (2023-10-02) → 'github:astro/microvm.nix/1119c4d7b1ed1e776f30fb13003b9f18b88a54f4' (2023-10-08) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/0ab3ee718e964fb42dc57ace6170f19cb0b66532' (2023-10-01) → 'github:NixOS/nixos-hardware/bb2db418b616fea536b1be7f6ee72fb45c11afe0' (2023-10-06) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a' (2023-09-29) → 'github:nixos/nixpkgs/87828a0e03d1418e848d3dd3f3014a632e4a4f64' (2023-10-06) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/033453f85064ccac434dfd957f95d8457901ecd6' (2023-10-01) → 'github:cachix/pre-commit-hooks.nix/66c352d33e0907239e4a69416334f64af2c685cc' (2023-10-05) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/611ccdceed92b4d94ae75328148d84ee4a5b462d' (2023-10-03) → 'github:oxalica/rust-overlay/6528a18a62d817200099c520b6eea7833ade9a9a' (2023-10-08) • Updated input 'sops': 'github:Mic92/sops-nix/746c7fa1a64c1671a4bf287737c27fdc7101c4c2' (2023-10-03) → 'github:Mic92/sops-nix/d7380c38d407eaf06d111832f4368ba3486b800e' (2023-10-08) • Updated input 'sops/nixpkgs-stable': 'github:NixOS/nixpkgs/dbe90e63a36762f1fbde546e26a84af774a32455' (2023-10-01) → 'github:NixOS/nixpkgs/2f3b6b3fcd9fa0a4e6b544180c058a70890a7cc1' (2023-10-07) |
||
---|---|---|
home-manager/modules | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.envrc | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 eza 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 |