Compare commits
3 commits
b67c8cff75
...
c1e6e330b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1e6e330b1 | ||
|
|
3d79018cf6 | ||
|
|
c3862ff13a |
3 changed files with 9 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ in
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
# "${modulesPath}/virtualisation/lxc-container.nix"
|
# "${modulesPath}/virtualisation/lxc-container.nix"
|
||||||
];
|
];
|
||||||
|
services.yggdrasil.persistentKeys = false;
|
||||||
deploy = {
|
deploy = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
|
@ -21,7 +22,6 @@ in
|
||||||
tty-ips.enable = true;
|
tty-ips.enable = true;
|
||||||
};
|
};
|
||||||
networking = {
|
networking = {
|
||||||
|
|
||||||
hostName = "base";
|
hostName = "base";
|
||||||
};
|
};
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,10 @@ in
|
||||||
allowed-users = [ "gitea-runner" ];
|
allowed-users = [ "gitea-runner" ];
|
||||||
trusted-users = [ "gitea-runner" ];
|
trusted-users = [ "gitea-runner" ];
|
||||||
};
|
};
|
||||||
|
sops.secrets.forgejo-runners-token = {
|
||||||
|
owner = "gitea-runner";
|
||||||
|
user = "gitea-runner";
|
||||||
|
};
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-runner;
|
package = pkgs.forgejo-runner;
|
||||||
instances = {
|
instances = {
|
||||||
|
|
@ -28,7 +31,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
url = "https://git.skdevstuios.com";
|
url = "https://git.skdevstuios.com";
|
||||||
name = "nix";
|
name = "nix";
|
||||||
labels = [ "native:host" ];
|
labels = [ "nix:host" ];
|
||||||
tokenFile = config.sops.secrets.forgejo-runners-token.path;
|
tokenFile = config.sops.secrets.forgejo-runners-token.path;
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
nix
|
nix
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
options.deploy = {
|
options.deploy = {
|
||||||
enable = (lib.mkEnableOption // { default = true; }) "enable deployrs module";
|
enable = lib.mkEnableOption "enable deployrs module" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
address = lib.mkOption {
|
address = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = config.networking.hostName;
|
default = config.networking.hostName;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue