No description
Find a file
Erwin Boskma e4bc570f96
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/637d87df3fd265a1d1669d897ad9436a87fc5ad8' (2023-06-22)
  → 'github:nix-community/disko/fef67a1ddc293b595d62a660f57deabbcb70ff95' (2023-06-26)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/29ad7704a8191bd9170ee7e50ae222f88fb675f9' (2023-06-23)
  → 'github:nix-community/emacs-overlay/41f4d133abf0a955e138397754b6ced199c3a6aa' (2023-06-26)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/ef0bc3976340dab9a4e087a0bcff661a8b2e87f3' (2023-06-21)
  → 'github:NixOS/nixpkgs/33223d479ffde3d05ac16c6dff04ae43cc27e577' (2023-06-23)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c' (2023-06-19)
  → 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25)
• Updated input 'home-manager':
    'github:nix-community/home-manager/d2b6f2d154bf6b27a93ed895392f80c503df7cfa' (2023-06-23)
  → 'github:nix-community/home-manager/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179' (2023-06-24)
• Updated input 'nil':
    'github:oxalica/nil/c7453bb3ea8a0ee5826ed6b068c7b2dfe2cd43ba' (2023-06-23)
  → 'github:oxalica/nil/e727e5556564966fb3f023f16a165067ced4ad8d' (2023-06-24)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e603dc5f061ca1d8a19b3ede6a8cf9c9fcba6cdc' (2023-06-22)
  → 'github:nixos/nixpkgs/3ae20aa58a6c0d1ca95c9b11f59a2d12eebc511f' (2023-06-23)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/fc0a266e836c079a9131108f4334e5af219dbb93' (2023-06-22)
  → 'github:oxalica/rust-overlay/b91d162355e88de89b379f3d6a459ade92704474' (2023-06-26)
2023-06-26 09:01:05 +02:00
home-manager/modules polybar: Improve headset battery script 2023-06-23 14:14:53 +02:00
machines Disable ssh-agent in favour of gnome keyring 2023-06-23 14:15:11 +02:00
modules Switch CI to woodpecker 2023-06-19 08:19:00 +02:00
overlays Remove commitgpt 2023-05-22 10:27:21 +02:00
pkgs Remove commitgpt 2023-05-22 10:27:21 +02:00
users Enable gnome-keyring in home-manager 2023-06-08 10:04:21 +02:00
.envrc Load .env file 2023-04-24 08:25:18 +02:00
.gitignore Add terraform stuff to .gitignore 2023-01-06 01:10:48 +01:00
.projectile Update flake.lock, update kernel version 2022-03-23 15:42:32 +01:00
.sops.yaml Add work age key 2023-06-01 16:04:32 +02:00
flake.lock Update flake.lock 2023-06-26 09:01:05 +02:00
flake.nix Remove eww-wayland from devshell 2023-06-23 14:14:33 +02:00
Justfile Load .env file 2023-04-24 08:25:18 +02:00
krops.nix Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00
README.org Tweaks 2022-10-05 15:36:12 +02:00
statix.toml Add pre-commit hooks and fix style issues 2022-11-19 20:00:54 +01:00

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