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;
|
deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.vno1-oh2;
|
||||||
user = "root";
|
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
|
// flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = import nixpkgs {inherit system;};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
apps.deploy-rs = {
|
apps.deploy-rs = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${deploy-rs.packages."${system}".default}/bin/deploy";
|
program = "${deploy-rs.packages."${system}".default}/bin/deploy";
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
updaterbot = {
|
updaterbot = {
|
||||||
enable = true;
|
enableMaster = true;
|
||||||
uidgid = myData.uidgid.updaterbot;
|
uidgid = myData.uidgid.updaterbot;
|
||||||
repo = "git@git.jakstys.lt:motiejus/config";
|
repo = "git@git.jakstys.lt:motiejus/config";
|
||||||
deployDerivations = [".#vno1-oh2"];
|
deployDerivations = [".#vno1-oh2"];
|
||||||
|
@ -5,13 +5,14 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options.mj.services.updaterbot = with lib.types; {
|
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;};
|
deployDerivations = lib.mkOption {type = listOf str;};
|
||||||
uidgid = lib.mkOption {type = int;};
|
uidgid = lib.mkOption {type = int;};
|
||||||
repo = lib.mkOption {type = str;};
|
repo = lib.mkOption {type = str;};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.mj.services.updaterbot.enable {
|
config = lib.mkIf config.mj.services.updaterbot.enableMaster {
|
||||||
users = {
|
users = {
|
||||||
users = {
|
users = {
|
||||||
# TODO: git config --global user.email updaterbot@jakstys.lt
|
# TODO: git config --global user.email updaterbot@jakstys.lt
|
||||||
|
Loading…
Reference in New Issue
Block a user