No description
Find a file
Erwin Boskma 5a94b93c35
Update flake.lock
• Updated input 'disko':
    'github:nix-community/disko/00169fe4a6015a88c3799f0bf89689e06a4d4896' (2023-08-28)
  → 'github:nix-community/disko/b2ea7d62581fa50d3e19a949b85fe04c1e8d7384' (2023-09-05)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/12332e7a2a2f3899dcca76c752464ca87215dd53' (2023-08-30)
  → 'github:nix-community/emacs-overlay/f5c2366c5d8f241b8c66e4b18be8ad25ffdb4e48' (2023-09-06)
• Updated input 'emacs-overlay/nixpkgs-stable':
    'github:NixOS/nixpkgs/c540061ac8d72d6e6d99345bd2d590c82b2f58c1' (2023-08-28)
  → 'github:NixOS/nixpkgs/da5adce0ffaff10f6d0fee72a02a5ed9d01b52fc' (2023-09-03)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/59cf3f1447cfc75087e7273b04b31e689a8599fb' (2023-08-01)
  → 'github:hercules-ci/flake-parts/7f53fdb7bdc5bb237da7fefef12d099e4fd611ca' (2023-09-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/9e1960bc196baf6881340d53dccb203a951745a2?dir=lib' (2023-08-01)
  → 'github:NixOS/nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85?dir=lib' (2023-08-31)
• Updated input 'home-manager':
    'github:nix-community/home-manager/8bde7a651b94ba30bd0baaa9c4a08aae88cc2e92' (2023-08-28)
  → 'github:nix-community/home-manager/b22d7bab30076bbb73744867d6c5bf7d6380570c' (2023-09-06)
• Updated input 'microvm':
    'github:astro/microvm.nix/a291d324915f26d1fd86443bd486089099e8b541' (2023-08-17)
  → 'github:astro/microvm.nix/8d2a99baa151bc120b3f062aadbfaca7a942c23a' (2023-09-05)
• Updated input 'nil':
    'github:oxalica/nil/97abe7d3d48721d4e0fcc1876eea83bb4247825b' (2023-08-07)
  → 'github:oxalica/nil/4bdcfcfe38cfcb386142e043392afbfa542665dd' (2023-09-03)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/817e297fc3352fadc15f2c5306909aa9192d7d97' (2023-08-25)
  → 'github:NixOS/nixos-hardware/793de77d9f83418b428e8ba70d1e42c6507d0d35' (2023-09-03)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/3efb0f6f404ec8dae31bdb1a9b17705ce0d6986e' (2023-08-28)
  → 'github:nixos/nixpkgs/3c15feef7770eb5500a4b8792623e2d6f598c9c1' (2023-09-04)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1fb2aa49635e9f30b6fa211ab7c454f7175e1ba3' (2023-08-30)
  → 'github:oxalica/rust-overlay/a8b4bb4cbb744baaabc3e69099f352f99164e2c1' (2023-09-06)
• Updated input 'sops':
    'github:Mic92/sops-nix/c89ee06488706b587a22085b1844bf9ca6ba5687' (2023-08-28)
  → 'github:Mic92/sops-nix/faf21ac162173c2deb54e5fdeed002a9bd6e8623' (2023-09-05)
• Updated input 'sops/nixpkgs-stable':
    'github:NixOS/nixpkgs/9117c4e9dc117a6cd0319cca40f2349ed333669d' (2023-08-27)
  → 'github:NixOS/nixpkgs/5601118d39ca9105f8e7b39d4c221d3388c0419d' (2023-09-02)
2023-09-06 16:56:35 +02:00
home-manager/modules ssh: connect to forgejo over tailscale 2023-08-30 12:37:01 +02:00
machines Add container for unifi controller 2023-09-06 16:56:20 +02:00
modules keycloak: Add Tailscale hostname as server alias 2023-08-30 12:28:38 +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 work: Switch to elementary theme 2023-08-30 12:28:25 +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 Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
flake.lock Update flake.lock 2023-09-06 16:56:35 +02:00
flake.nix Use caddy as proxy in place of nginx-proxy-manager 2023-08-10 16:43:46 +02:00
Justfile Add boot recipe to Justfile 2023-07-03 09:26:40 +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