Add comin as a possible deployment solution

More info: https://github.com/nlewo/comin/
This commit is contained in:
Erwin Boskma 2024-11-05 17:11:58 +01:00
parent ecd03b901d
commit 2e65e201c6
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
3 changed files with 45 additions and 1 deletions

View file

@ -71,6 +71,26 @@
"type": "github"
}
},
"comin": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1724145018,
"narHash": "sha256-6R5CeMgr3EGKhqWPkqtteOtix7hBaurfpjHepiq2OrU=",
"owner": "nlewo",
"repo": "comin",
"rev": "84ef9af404b9157eab2c5e3e44d7c29239329901",
"type": "github"
},
"original": {
"owner": "nlewo",
"repo": "comin",
"type": "github"
}
},
"crane": {
"inputs": {
"flake-compat": "flake-compat_3",
@ -627,6 +647,7 @@
"anyrun": "anyrun",
"caddy-with-plugins": "caddy-with-plugins",
"colmena": "colmena",
"comin": "comin",
"disko": "disko",
"emacs-overlay": "emacs-overlay",
"eww": "eww",

View file

@ -94,6 +94,11 @@
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
comin = {
url = "github:nlewo/comin";
inputs.nixpkgs.follows = "nixpkgs";
};
caddy-with-plugins = {
url = "github:eboskma/caddy-with-plugins";
inputs = {

View file

@ -1,4 +1,9 @@
{ self, caddy-with-plugins, ... }:
{
self,
comin,
caddy-with-plugins,
...
}:
{
modulesPath,
pkgs,
@ -8,6 +13,9 @@
{
imports = [
(modulesPath + "/virtualisation/lxc-container.nix")
comin.nixosModules.comin
../../users/root
../../users/erwin
@ -60,6 +68,16 @@
firewall.trustedInterfaces = [ "tailscale0" ];
};
services.comin = {
enable = true;
remotes = [
{
name = "origin";
url = "https://git.datarift.nl/erwin/nixos-config";
}
];
};
systemd = {
services.logrotate-checkconf.enable = false;