modules/nixos: add comin
This commit is contained in:
parent
47d6de1f1b
commit
7b83b7e285
4 changed files with 44 additions and 0 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -26,6 +26,26 @@
|
||||||
"type": "github"
|
"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": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -195,6 +215,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"buildbot-nix": "buildbot-nix",
|
"buildbot-nix": "buildbot-nix",
|
||||||
|
"comin": "comin",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
nur-update.url = "github:nix-community/nur-update";
|
nur-update.url = "github:nix-community/nur-update";
|
||||||
nur-update.inputs.nixpkgs.follows = "nixpkgs";
|
nur-update.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
comin.url = "github:nlewo/comin";
|
||||||
|
comin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
|
19
modules/nixos/common/comin.nix
Normal file
19
modules/nixos/common/comin.nix
Normal 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
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./auto-upgrade.nix
|
./auto-upgrade.nix
|
||||||
|
./comin.nix
|
||||||
../../shared/known-hosts.nix
|
../../shared/known-hosts.nix
|
||||||
../../shared/nix-daemon.nix
|
../../shared/nix-daemon.nix
|
||||||
./reboot.nix
|
./reboot.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue