aboutsummaryrefslogtreecommitdiff
path: root/flake
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-09-01 19:33:35 -0700
committerFranck Cuny <franck@fcuny.net>2025-09-01 19:33:35 -0700
commit5eb26fde41a1f769837c0cf6f8433b234cf98d22 (patch)
treee3d2bfe62b3247ad1f95f3a108c204f32446beb9 /flake
parentdisable some ML related features (diff)
downloadinfra-5eb26fde41a1f769837c0cf6f8433b234cf98d22.tar.gz
initial attempt at using colmena to deploy nixos configurations
Can be used that way: ``` colmena exec --impure -v --on do-rproxy -- 'systemctl status nginx' ``` or ``` colmena --impure apply dry-activate --on synology-vm ```
Diffstat (limited to 'flake')
-rw-r--r--flake/devshells.nix1
-rw-r--r--flake/hosts.nix37
2 files changed, 38 insertions, 0 deletions
diff --git a/flake/devshells.nix b/flake/devshells.nix
index 15c571b..3540bf5 100644
--- a/flake/devshells.nix
+++ b/flake/devshells.nix
@@ -52,6 +52,7 @@
with pkgs;
[
nixos-rebuild
+ colmena
git
inputs.agenix.packages."${system}".default
]
diff --git a/flake/hosts.nix b/flake/hosts.nix
index 3ae840e..ff2b5a9 100644
--- a/flake/hosts.nix
+++ b/flake/hosts.nix
@@ -169,5 +169,42 @@ in
{
flake = {
inherit nixosConfigurations darwinConfigurations;
+ colmena = {
+ meta = {
+ nixpkgs = import inputs.nixpkgs {
+ system = "x86_64-linux";
+ overlays = [
+ inputs.agenix.overlays.default
+ inputs.my-go-tools.overlays.default
+ ];
+ };
+
+ specialArgs = {
+ inherit inputs self;
+ adminUser = {
+ name = "fcuny";
+ uid = 1000;
+ userinfo = {
+ email = "franck@fcuny.net";
+ fullName = "Franck Cuny";
+ };
+ };
+ };
+ };
+
+ defaults =
+ {
+ ...
+ }:
+ {
+ imports = defaultModules ++ [
+ inputs.my-go-tools.nixosModules.default
+ inputs.home-manager.nixosModules.home-manager
+ ];
+ };
+
+ synology-vm = import ../machines/nixos/x86_64-linux/synology-vm;
+ do-rproxy = import ../machines/nixos/x86_64-linux/do-rproxy;
+ };
};
}