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 f5b52fe270
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" "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": { "crane": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_3", "flake-compat": "flake-compat_3",
@ -627,6 +647,7 @@
"anyrun": "anyrun", "anyrun": "anyrun",
"caddy-with-plugins": "caddy-with-plugins", "caddy-with-plugins": "caddy-with-plugins",
"colmena": "colmena", "colmena": "colmena",
"comin": "comin",
"disko": "disko", "disko": "disko",
"emacs-overlay": "emacs-overlay", "emacs-overlay": "emacs-overlay",
"eww": "eww", "eww": "eww",

View file

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

View file

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