From ce1ca48877ca9923c16d6e6255e0a56307602e02 Mon Sep 17 00:00:00 2001 From: xqtc Date: Sat, 2 Nov 2024 00:28:05 +0100 Subject: [PATCH] add comin --- flake.nix | 4 ++++ home/modules/nixvim.nix | 8 ++++---- hosts/x86_64-linux/beleth/comin.nix | 18 ++++++++++++++++++ hosts/x86_64-linux/beleth/default.nix | 1 + 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 hosts/x86_64-linux/beleth/comin.nix diff --git a/flake.nix b/flake.nix index 73bb18c..fae93d7 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,10 @@ nixpkgs-master.url = "github:NixOS/nixpkgs/master"; apple-silicon.url = "github:tpwrules/nixos-apple-silicon"; flake-parts.url = "github:hercules-ci/flake-parts"; + comin = { + url = "github:nlewo/comin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; compose2nix = { url = "github:aksiksi/compose2nix"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index 0f01c4d..7b6e399 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -191,10 +191,10 @@ lua-ls.enable = true; gopls.enable = true; nushell.enable = true; - clangd = { - enable = true; - filetypes = ["c" "cpp" "objc" "objcpp" "cpp"]; - }; + clangd = { + enable = true; + filetypes = ["c" "cpp" "objc" "objcpp" "cpp"]; + }; svelte.enable = true; ts-ls.enable = true; java-language-server.enable = true; diff --git a/hosts/x86_64-linux/beleth/comin.nix b/hosts/x86_64-linux/beleth/comin.nix new file mode 100644 index 0000000..c8890d6 --- /dev/null +++ b/hosts/x86_64-linux/beleth/comin.nix @@ -0,0 +1,18 @@ +{ + inputs, + pkgs, + lib, + config, + ... +}: { + services.comin = { + enable = true; + remotes = [ + { + name = "origin"; + url = "https://gitlab.com/your/infra.git"; + branches.main.name = "main"; + } + ]; + }; +} diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index 0dd184a..f486e72 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -9,6 +9,7 @@ with lib; { ./hardware-configuration.nix ./monitoring.nix ./caddy.nix + ./comin.nix ./jellyfin.nix ./calibre-web.nix ./transmission.nix