diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-09-01 19:33:35 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-09-01 19:33:35 -0700 |
| commit | 5eb26fde41a1f769837c0cf6f8433b234cf98d22 (patch) | |
| tree | e3d2bfe62b3247ad1f95f3a108c204f32446beb9 /flake/hosts.nix | |
| parent | disable some ML related features (diff) | |
| download | infra-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 '')
| -rw-r--r-- | flake/hosts.nix | 37 |
1 files changed, 37 insertions, 0 deletions
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; + }; }; } |
