move yobot to pennyworth

This commit is contained in:
Yorick van Pelt 2024-04-27 10:56:26 +02:00
parent 1e86a647bc
commit fab5decd21
Signed by: yorick
GPG key ID: D8D3CC6D951384DE
5 changed files with 167 additions and 3 deletions

View file

@ -171,6 +171,26 @@
"type": "github" "type": "github"
} }
}, },
"dream2nix_3": {
"inputs": {
"nixpkgs": "nixpkgs_4",
"purescript-overlay": "purescript-overlay_2",
"pyproject-nix": "pyproject-nix_2"
},
"locked": {
"lastModified": 1714156336,
"narHash": "sha256-9vk0C+CkPHUzbrrsuqERMwKTodPpUnNFieeoS06ywak=",
"owner": "nix-community",
"repo": "dream2nix",
"rev": "7979674299c631520a5c0fe73551cd3d8580d1b4",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "dream2nix",
"type": "github"
}
},
"emacs-overlay": { "emacs-overlay": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
@ -370,6 +390,23 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_5": {
"inputs": {
"systems": "systems_6"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"id": "flake-utils",
"type": "indirect"
}
},
"fooocus": { "fooocus": {
"inputs": { "inputs": {
"dream2nix": "dream2nix_2", "dream2nix": "dream2nix_2",
@ -793,6 +830,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1714091391,
"narHash": "sha256-68n3GBvlm1MIeJXadPzQ3v8Y9sIW3zmv8gI5w5sliC8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4c86138ce486d601d956a165e2f7a0fc029a03c1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
@ -838,6 +891,29 @@
"type": "github" "type": "github"
} }
}, },
"purescript-overlay_2": {
"inputs": {
"nixpkgs": [
"yobot",
"dream2nix",
"nixpkgs"
],
"slimlock": "slimlock_2"
},
"locked": {
"lastModified": 1696022621,
"narHash": "sha256-eMjFmsj2G1E0Q5XiibUNgFjTiSz0GxIeSSzzVdoN730=",
"owner": "thomashoneyman",
"repo": "purescript-overlay",
"rev": "047c7933abd6da8aa239904422e22d190ce55ead",
"type": "github"
},
"original": {
"owner": "thomashoneyman",
"repo": "purescript-overlay",
"type": "github"
}
},
"pyproject-nix": { "pyproject-nix": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -855,6 +931,23 @@
"type": "github" "type": "github"
} }
}, },
"pyproject-nix_2": {
"flake": false,
"locked": {
"lastModified": 1702448246,
"narHash": "sha256-hFg5s/hoJFv7tDpiGvEvXP0UfFvFEDgTdyHIjDVHu1I=",
"owner": "davhau",
"repo": "pyproject.nix",
"rev": "5a06a2697b228c04dd2f35659b4b659ca74f7aeb",
"type": "github"
},
"original": {
"owner": "davhau",
"ref": "dream2nix",
"repo": "pyproject.nix",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
@ -871,7 +964,8 @@
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-mozilla": "nixpkgs-mozilla", "nixpkgs-mozilla": "nixpkgs-mozilla",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"timesync": "timesync" "timesync": "timesync",
"yobot": "yobot"
} }
}, },
"slimlock": { "slimlock": {
@ -896,6 +990,29 @@
"type": "github" "type": "github"
} }
}, },
"slimlock_2": {
"inputs": {
"nixpkgs": [
"yobot",
"dream2nix",
"purescript-overlay",
"nixpkgs"
]
},
"locked": {
"lastModified": 1688610262,
"narHash": "sha256-Wg0ViDotFWGWqKIQzyYCgayeH8s4U1OZcTiWTQYdAp4=",
"owner": "thomashoneyman",
"repo": "slimlock",
"rev": "b5c6cdcaf636ebbebd0a1f32520929394493f1a6",
"type": "github"
},
"original": {
"owner": "thomashoneyman",
"repo": "slimlock",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@ -971,6 +1088,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_6": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"timesync": { "timesync": {
"inputs": { "inputs": {
"nix-npm-buildpackage": "nix-npm-buildpackage_2", "nix-npm-buildpackage": "nix-npm-buildpackage_2",
@ -1051,6 +1183,30 @@
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
},
"yobot": {
"inputs": {
"dream2nix": "dream2nix_3",
"flake-utils": "flake-utils_5",
"nixpkgs": [
"yobot",
"dream2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1714207911,
"narHash": "sha256-btl1Sv3N7YBVKzRiq14rNTKhuXVRBhR8sNBLURbLCXQ=",
"ref": "refs/heads/main",
"rev": "6eb4056bd3b90d661ab3dcb4bd9171b487f017c1",
"revCount": 13,
"type": "git",
"url": "https://git.yori.cc/yorick/yobot.git"
},
"original": {
"type": "git",
"url": "https://git.yori.cc/yorick/yobot.git"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -16,6 +16,7 @@
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
nix-npm-buildpackage.url = "github:serokell/nix-npm-buildpackage"; nix-npm-buildpackage.url = "github:serokell/nix-npm-buildpackage";
nix-npm-buildpackage.inputs.nixpkgs.follows = "nixpkgs"; nix-npm-buildpackage.inputs.nixpkgs.follows = "nixpkgs";
yobot.url = "git+https://git.yori.cc/yorick/yobot.git";
attic = { attic = {
url = "github:zhaofengli/attic"; url = "github:zhaofengli/attic";
inputs = { inputs = {
@ -35,7 +36,7 @@
outputs = inputs@{ nixpkgs, home-manager, nixpkgs-mozilla, emacs-overlay outputs = inputs@{ nixpkgs, home-manager, nixpkgs-mozilla, emacs-overlay
, nixpkgs-wayland, nixos-hardware, agenix, flake-utils , nixpkgs-wayland, nixos-hardware, agenix, flake-utils
, nix-index-database, nix-npm-buildpackage, timesync , nix-index-database, nix-npm-buildpackage, timesync
, attic, dream2nix , attic, dream2nix, yobot
, self , self
, ... }: , ... }:
(flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: (flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:

View file

@ -2,13 +2,14 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }: { { config, pkgs, lib, inputs, ... }: {
imports = [ imports = [
./hetznercloud.nix ./hetznercloud.nix
../../roles/server.nix ../../roles/server.nix
../../roles/datakami.nix ../../roles/datakami.nix
../../services/backup.nix ../../services/backup.nix
../../services/email.nix ../../services/email.nix
inputs.yobot.nixosModules.default
]; ];
system.stateVersion = "19.03"; system.stateVersion = "19.03";
@ -86,4 +87,9 @@
ports = [ "127.0.0.1:3001:3000" ]; ports = [ "127.0.0.1:3001:3000" ];
volumes = [ "docuseal:/data" ]; volumes = [ "docuseal:/data" ];
}; };
age.secrets.yobot.file = ../../../secrets/yobot.toml.age;
services.yobot = {
enable = true;
configFile = config.age.secrets.yobot.path;
};
} }

View file

@ -30,4 +30,5 @@ in
"marvin-tracker.env.age".publicKeys = [ yorick frumar ]; "marvin-tracker.env.age".publicKeys = [ yorick frumar ];
"oauth2-proxy.age".publicKeys = [ yorick frumar ]; "oauth2-proxy.age".publicKeys = [ yorick frumar ];
"attic.env.age".publicKeys = [ yorick frumar ]; "attic.env.age".publicKeys = [ yorick frumar ];
"yobot.toml.age".publicKeys = [ yorick pennyworth ];
} }

BIN
secrets/yobot.toml.age Normal file

Binary file not shown.