nlewo/comin
Acerca de
GitOps para servidores y portátiles con NixOS
Sistemas e infraestructuraWhat you can do
- :snowflake: Git push to deploy NixOS configurations (or nix-darwin)
- :handshake: Support flake and non-flake repositories
- :construction: Support testing branches to try changes
- :rocket: Poll multiple Git remotes to avoid SPOF
Crecimiento de estrellas medido
- in 24h
- +2
- in 7 days
- +9
- in 15 days
- +30
- in 1 month
- +63
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalcomin - GitOps for NixOS Servers and Laptops
comin is a NixOS deployment tool operating in pull mode. Running on a machine, it periodically polls Git repositories and deploys the NixOS configuration associated to the machine.
Main features
- :snowflake: Git push to deploy NixOS configurations (or nix-darwin)
- :handshake: Support flake and non-flake repositories
- :construction: Support testing branches to try changes
- :rocket: Poll multiple Git remotes to avoid SPOF
- :postbox: Support machines migrations
- :fast_forward: Fast iterations with local remotes
- :satellite: Observable via Prometheus metrics
- :pushpin: Create and delete system profiles
- :lock: Optionally check GPG and SSH Git commit signatures
- All others features
Quick start
This is a basic flake.nix example:
{
inputs = {
nixpkgs.url = "github:nixOS/nixpkgs";
comin = {
url = "github:nlewo/comin";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, comin }: {
nixosConfigurations = {
myMachine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
comin.nixosModules.default
({
services.comin = {
enable = true;
remotes = [{
name = "origin";
url = "https://gitlab.com/your/infra.git";
branches.main.name = "main";
}];
};
})
];
};
};
};
}
This enables a systemd service, which periodically pulls the main
branch of the repository https://gitlab.com/your/infra.git and
deploys the NixOS configuration corresponding to the machine hostname
myMachine.
A new commit in the main branch of the repository
https://gitlab.com/your/infra.git is then deployed in the next 60
seconds.
Comin exposes much more options which are described in the generated documentation.
Documentation
Community
We have a Matrix room at https://matrix.to/#/#nixos-comin:matrix.org.
Explorar proyectos relacionados
Cargando…