mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 01:47:23 +08:00
refactor
This commit is contained in:
parent
a5bc0ffd4a
commit
c91bade696
1 changed files with 9 additions and 4 deletions
|
|
@ -21,6 +21,7 @@ let
|
|||
in
|
||||
{
|
||||
options = {
|
||||
# TODO: Make this general enough to support organizations and other users.
|
||||
services.personal-github-runners = lib.mkOption {
|
||||
default = { };
|
||||
type = types.submodule {
|
||||
|
|
@ -49,6 +50,9 @@ in
|
|||
type = types.str;
|
||||
default = "gh-selfhosted-tokens";
|
||||
readOnly = true;
|
||||
description = ''
|
||||
sops-nix parent key path containing the tokens
|
||||
'';
|
||||
};
|
||||
nixosConfig = lib.mkOption {
|
||||
type = types.deferredModule;
|
||||
|
|
@ -96,6 +100,11 @@ in
|
|||
userModule // {
|
||||
sops.secrets."${cfg.sopsPrefix}/${cfg.owner}".mode = "0440";
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ user ];
|
||||
allowed-users = [ user ];
|
||||
};
|
||||
|
||||
containers =
|
||||
lib.listToAttrs (builtins.map
|
||||
(name:
|
||||
|
|
@ -126,9 +135,5 @@ in
|
|||
})
|
||||
cfg.repositories);
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ user ];
|
||||
allowed-users = [ user ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue