No description
Erwin Boskma
44649923a6
Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/acf3c351f8de47c6857f31948ab253f9c7ce2a6f?narHash=sha256-jcY81r8PdMQ9dCGhT0YLZzxPj3kQJXyWCmvQLXbR1EI%3D' (2024-08-19) → 'github:zhaofengli/attic/6d9aeaef0a067d664cb11bb7704f7ec373d47fb2?narHash=sha256-cltFh4su2vcFidxKp7LuEgX3ZGLfPy0DCdrQZ/QTe68%3D' (2024-08-21) • Updated input 'disko': 'github:nix-community/disko/4e719b38fa7c85f4f65d0308ca7084c91e7bdd6d?narHash=sha256-o1HdAf%2B7IGv9M13R3c%2Bzc/sJ0QgeEnhsvHBcodI4UpM%3D' (2024-08-19) → 'github:nix-community/disko/4b866c9942d0f771ae934f04ca9859936f9bfbcf?narHash=sha256-dtL4vielmrko/0XpZ3Wfd7czVvv3NC5oiwh8PKJN9hw%3D' (2024-08-22) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/d153d9f118d71fa8f4d3204639b4fd32d793ab57?narHash=sha256-kZm8GJfEt8Na5JyNfjXCIUKiMOAbWDNsCejh2OeF7r8%3D' (2024-08-19) → 'github:nix-community/emacs-overlay/f97fc32d98cd25d40830543e95dc7cd66ef9ac63?narHash=sha256-ZoV3H/kFChy3wwPLHz%2B87cc6vve0sGufuyni27Z4lBU%3D' (2024-08-22) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/c42fcfbdfeae23e68fc520f9182dde9f38ad1890?narHash=sha256-9tUadhnZQbWIiYVXH8ncfGXGvkNq3Hag4RCBEMUk7MI%3D' (2024-08-17) → 'github:NixOS/nixpkgs/f1bad50880bae73ff2d82fafc22010b4fc097a9c?narHash=sha256-D5HwjQw/02fuXbR4LCTo64koglP2j99hkDR79/3yLOE%3D' (2024-08-19) • Updated input 'eww': 'github:elkowar/eww/4d55e9ad63d1fae887726dffcd25a32def23d34f?narHash=sha256-LTSFlW/46hl1u9SzqnvbtNxswCW05bhwOY6CzVEJC5o%3D' (2024-07-05) → 'github:elkowar/eww/696135a6bba3d083d326eda1f81471c636987afb?narHash=sha256-w02TAMaUM0jpIWhZ8mMC7QmYn5ZaPoW7m%2B3voijJQ30%3D' (2024-08-21) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/8a3354191c0d7144db9756a74755672387b702ba?narHash=sha256-Grh5PF0%2BgootJfOJFenTTxDTYPidA3V28dqJ/WV7iis%3D' (2024-08-18) → 'github:nixos/nixpkgs/c374d94f1536013ca8e92341b540eba4c22f9c62?narHash=sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh%2BaRKoCdaAv5fiO0%3D' (2024-08-21) • Updated input 'pre-commit-hooks': 'github:cachix/git-hooks.nix/bfef0ada09e2c8ac55bbcd0831bd0c9d42e651ba?narHash=sha256-yezvUuFiEnCFbGuwj/bQcqg7RykIEqudOy/RBrId0pc%3D' (2024-08-16) → 'github:cachix/git-hooks.nix/6cedaa7c1b4f82a266e5d30f212273e60d62cb0d?narHash=sha256-TuSaYdhOxeaaE9885mFO1lZHHax33GD5A9dczJrGUjw%3D' (2024-08-21) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/c7d36e0947826e0751a5214ffe82533fbc909bc0?narHash=sha256-b1g7w0sw%2BMDAhUAeCoX1vlTghsqcDZkxr%2Bk9OZmxPa8%3D' (2024-08-19) → 'github:oxalica/rust-overlay/6dc6d34a3a217457d7044dcce32b6d537480a6a1?narHash=sha256-x/XhOAszT/ejditCHUtGOjQcVg2AQhrC/QVew3i7kTI%3D' (2024-08-22) |
||
---|---|---|
.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 |