diff --git a/flake.lock b/flake.lock index 1998dac..2abab72 100644 --- a/flake.lock +++ b/flake.lock @@ -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", diff --git a/flake.nix b/flake.nix index fc1bba0..471af5d 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = { diff --git a/machines/read/configuration.nix b/machines/read/configuration.nix index 295ef3e..92f4c80 100644 --- a/machines/read/configuration.nix +++ b/machines/read/configuration.nix @@ -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;