No description
Erwin Boskma
8730edeb81
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/c61e50b63ad50dda5797b1593ad7771be496efbb?narHash=sha256-Ef7UgoTdOB4PGQKSkHGu6SOxnTiArPHGcRf8qGFC39o%3D' (2024-09-24) → 'github:nix-community/disko/c1c472f4cd91e4b0703e02810a8c7ed30186b6fa?narHash=sha256-lAqOCDI4B6hA%2Bt%2BKHSm/Go8hQF/Ob5sgXaIRtMAnMKw%3D' (2024-09-25) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/b3512b3df5396e17d9e89cadcc3f57db0ea1fecc?narHash=sha256-uaugOQen4xK3vxect3xZyq3CsNOHcV5nMHS4yteIHFA%3D' (2024-09-24) → 'github:nix-community/emacs-overlay/ad40c4b881309a5a96029636c35cc42419d55ce7?narHash=sha256-gYPDeDnGP/ky1CKiRIttv7JhiAPIerjDSypnNXHkJpA%3D' (2024-09-26) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/23cbb250f3bf4f516a2d0bf03c51a30900848075?narHash=sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0%2BesxqizGc%3D' (2024-09-22) → 'github:NixOS/nixpkgs/759537f06e6999e141588ff1c9be7f3a5c060106?narHash=sha256-KQPI8CTTnB9CrJ7LrmLC4VWbKZfljEPBXOFGZFRpxao%3D' (2024-09-25) • Updated input 'home-manager': 'github:nix-community/home-manager/21c021862fa696c8199934e2153214ab57150cb6?narHash=sha256-EYLvFRoTPWtD%2B3uDg2wwQvlz88OrIr3zld%2BjFE5gDcY%3D' (2024-09-23) → 'github:nix-community/home-manager/1e22ef1518fb175d762006f9cae7f6312b8caedb?narHash=sha256-TcUaKtya339Asu%2Bg6KTJ8h7KiKcKXKp2V%2BAt%2B7tksyY%3D' (2024-09-25) • Updated input 'nixos-facter-modules': 'github:numtide/nixos-facter-modules/6eb13404bbe40b9a5ef9984792b27933658571fa?narHash=sha256-U2rPYu3iDI3GN1H6MN3NoCuVrAJlBJ9nNWRQY8Cs32Y%3D' (2024-09-20) → 'github:numtide/nixos-facter-modules/eb948c9d46fcea1cf99b20f69b091ead76ae3b63?narHash=sha256-qX4p4HrXIwmhcDTNi7q3xg7yCieQ%2BOryECjTwOEEkTk%3D' (2024-09-25) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6?narHash=sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c%3D' (2024-09-21) → 'github:nixos/nixpkgs/30439d93eb8b19861ccbe3e581abf97bdc91b093?narHash=sha256-o8VBeCWHBxGd4kVMceIayf5GApqTavJbTa44Xcg5Rrk%3D' (2024-09-23) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/2e19799819104b46019d339e78d21c14372d3666?narHash=sha256-uMZMjoCS2nf40TAE1686SJl3OXWfdfM%2BBDEfRdr%2BuLc%3D' (2024-09-24) → 'github:oxalica/rust-overlay/a3d832f389606d7dc61a45b244c72ea472d1fcd4?narHash=sha256-yGYahXzCquyYEgf5GTtvtaN5hXbw20Ok2%2Bo8uVxoaFs%3D' (2024-09-26) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/35dfece10c642eb52928a48bee7ac06a59f93e9a?narHash=sha256-gplorAc0ISAUPemUNOnRUs7jr3WiLiHZb3DJh%2B%2BIkZs%3D' (2024-09-23) → 'github:numtide/treefmt-nix/1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3?narHash=sha256-3O7RWiXpvqBcCl84Mvqa8dXudZ1Bol1ubNdSmQt7nF4%3D' (2024-09-25) |
||
---|---|---|
.forgejo/workflows | ||
home-manager/modules | ||
lib | ||
machines | ||
modules | ||
overlays | ||
pkgs | ||
users | ||
wallpapers | ||
.dir-locals.el | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.projectile | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
Justfile | ||
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 |