finalize, use it outside

This commit is contained in:
Sridhar Ratnakumar 2024-02-14 05:46:21 -05:00
parent f25e56116e
commit 349f7d8f0a
2 changed files with 9 additions and 9 deletions

View file

@ -81,11 +81,17 @@
inputs.sops-nix.nixosModules.sops
./systems/hetzner/ax41.nix
./nixos/server/harden.nix
./nixos/github-runner.nix
./nixos/easy-github-runners.nix
];
services.tailscale.enable = true;
sops.defaultSopsFile = ./secrets.json;
sops.defaultSopsFormat = "json";
services.easy-github-runners = {
"srid/emanote" = { };
"srid/haskell-flake" = { };
"srid/nixos-config" = { };
"srid/ema" = { };
};
};
};

View file

@ -20,18 +20,12 @@ in
{
options = {
# TODO: Make this general enough to support organizations and other users.
services.personal-github-runners = lib.mkOption {
services.easy-github-runners = lib.mkOption {
description = ''
Attrset of runners.
The key is either org name or the repo path.
'';
default = {
"srid/emanote" = { };
"srid/haskell-flake" = { };
"srid/nixos-config" = { };
"srid/ema" = { };
};
type = types.lazyAttrsOf (types.submodule ({ config, name, ... }: {
options = {
owner = lib.mkOption {
@ -96,7 +90,7 @@ in
};
config =
let
cfg = config.services.personal-github-runners;
cfg = config.services.easy-github-runners;
user = "github-runner";
userModule = {
users.users.${user} = {