modules/nixos: add comin

This commit is contained in:
zowoq 2024-03-16 11:52:48 +10:00
parent 47d6de1f1b
commit 7b83b7e285
4 changed files with 44 additions and 0 deletions

21
flake.lock generated
View file

@ -26,6 +26,26 @@
"type": "github"
}
},
"comin": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1710799524,
"narHash": "sha256-5ZMHWRYsj3ybp2J+tsSpiMIcotI7CHngAx6NdLfSPl8=",
"owner": "nlewo",
"repo": "comin",
"rev": "b4f7dcc7c0f1a6ad6470c762f1ddccfb7ee887e4",
"type": "github"
},
"original": {
"owner": "nlewo",
"repo": "comin",
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": [
@ -195,6 +215,7 @@
"root": {
"inputs": {
"buildbot-nix": "buildbot-nix",
"comin": "comin",
"disko": "disko",
"flake-parts": "flake-parts",
"nix-darwin": "nix-darwin",

View file

@ -35,6 +35,9 @@
nur-update.url = "github:nix-community/nur-update";
nur-update.inputs.nixpkgs.follows = "nixpkgs";
comin.url = "github:nlewo/comin";
comin.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -0,0 +1,19 @@
{ inputs, lib, ... }:
{
imports = [
inputs.comin.nixosModules.comin
];
services.comin = {
enable = lib.mkDefault false;
remotes = [
{
url = "https://github.com/nix-community/infra.git";
name = "origin";
poller.period = 300; # every 5 minutes
branches.main.name = "master";
branches.testing.name = ""; # disable testing branch
}
];
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./auto-upgrade.nix
./comin.nix
../../shared/known-hosts.nix
../../shared/nix-daemon.nix
./reboot.nix