mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
finalize, use it outside
This commit is contained in:
parent
f25e56116e
commit
349f7d8f0a
2 changed files with 9 additions and 9 deletions
|
|
@ -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" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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} = {
|
||||
Loading…
Add table
Add a link
Reference in a new issue