vno1-oh2: enable deployerbot master
This commit is contained in:
parent
bff8cef210
commit
49b9cc8351
@ -117,6 +117,12 @@
|
||||
deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.vno1-oh2;
|
||||
user = "root";
|
||||
};
|
||||
updaterbot = {
|
||||
sshUser = "updaterbot";
|
||||
path =
|
||||
deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.vno1-oh2;
|
||||
user = "root";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -125,7 +131,6 @@
|
||||
// flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in {
|
||||
|
||||
apps.deploy-rs = {
|
||||
type = "app";
|
||||
program = "${deploy-rs.packages."${system}".default}/bin/deploy";
|
||||
|
@ -64,7 +64,7 @@
|
||||
|
||||
services = {
|
||||
updaterbot = {
|
||||
enable = true;
|
||||
enableMaster = true;
|
||||
uidgid = myData.uidgid.updaterbot;
|
||||
repo = "git@git.jakstys.lt:motiejus/config";
|
||||
deployDerivations = [".#vno1-oh2"];
|
||||
|
@ -5,13 +5,14 @@
|
||||
...
|
||||
}: {
|
||||
options.mj.services.updaterbot = with lib.types; {
|
||||
enable = lib.mkEnableOption "Enable system updater";
|
||||
enableMaster = lib.mkEnableOption "Enable system updater orchestrator";
|
||||
enableDeployer = lib.mkEnableOption "Enable system updater deployer";
|
||||
deployDerivations = lib.mkOption {type = listOf str;};
|
||||
uidgid = lib.mkOption {type = int;};
|
||||
repo = lib.mkOption {type = str;};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mj.services.updaterbot.enable {
|
||||
config = lib.mkIf config.mj.services.updaterbot.enableMaster {
|
||||
users = {
|
||||
users = {
|
||||
# TODO: git config --global user.email updaterbot@jakstys.lt
|
||||
|
Loading…
Reference in New Issue
Block a user