No description
Find a file
Erwin Boskma 64a5e59995
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/4823509bb3b014dc85abefc13efcfa076d36338a' (2023-06-19)
  → 'github:nix-community/disko/637d87df3fd265a1d1669d897ad9436a87fc5ad8' (2023-06-22)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/37ab2cb6a09245809e862dde7ed9adcd5b83d62d' (2023-06-19)
  → 'github:nix-community/emacs-overlay/29ad7704a8191bd9170ee7e50ae222f88fb675f9' (2023-06-23)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/c7ff1b9b95620ce8728c0d7bd501c458e6da9e04' (2023-06-16)
  → 'github:NixOS/nixpkgs/ef0bc3976340dab9a4e087a0bcff661a8b2e87f3' (2023-06-21)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31)
  → 'github:numtide/flake-utils/abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c' (2023-06-19)
• Updated input 'home-manager':
    'github:nix-community/home-manager/0480dabc99e1b669ebe909949180fa2786e733cd' (2023-06-18)
  → 'github:nix-community/home-manager/d2b6f2d154bf6b27a93ed895392f80c503df7cfa' (2023-06-23)
• Updated input 'microvm':
    'github:astro/microvm.nix/484e6e2209a0ead8ea43a9a79b193026026becfc' (2023-06-17)
  → 'github:astro/microvm.nix/c14833d8506a784f0b3cf91a2b864acb05662711' (2023-06-21)
• Updated input 'nil':
    'github:oxalica/nil/dbf26d6bc240790a533f7d54c01cea7ce952edec' (2023-06-15)
  → 'github:oxalica/nil/c7453bb3ea8a0ee5826ed6b068c7b2dfe2cd43ba' (2023-06-23)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/04af42f3b31dba0ef742d254456dc4c14eedac86' (2023-06-17)
  → 'github:nixos/nixpkgs/e603dc5f061ca1d8a19b3ede6a8cf9c9fcba6cdc' (2023-06-22)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/5b6b54d3f722aa95cbf4ddbe35390a0af8c0015a' (2023-06-13)
  → 'github:cachix/pre-commit-hooks.nix/7807e1851d95828ed98491930d2d9e7ddbe65da4' (2023-06-20)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/86302751ef371597d48951983e1a2f04fe78d4ff' (2023-06-19)
  → 'github:oxalica/rust-overlay/fc0a266e836c079a9131108f4334e5af219dbb93' (2023-06-22)
• Updated input 'sops':
    'github:Mic92/sops-nix/1634d2da53f079e7f5924efa7a96511cd9596f81' (2023-06-18)
  → 'github:Mic92/sops-nix/2ff6973350682f8d16371f8c071a304b8067f192' (2023-06-22)
2023-06-23 14:12:37 +02:00
home-manager/modules emacs: Disable prettier-global-mode and enable only for web stuff 2023-06-23 14:11:44 +02:00
machines Switch CI to woodpecker 2023-06-19 08:19:00 +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-23 14:12:37 +02:00
flake.nix Clean up flake.nix 2023-06-01 23:36:02 +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