Colmena | 327 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 112 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Feb 2022 | ||
| Zhaofeng Li: Just saw it, thank you! | 07:43:22 | |
| That is a possible solution, but wouldn't it be nice to have an option to execute commands preo/post deployment anyways? I imagine that could come in handy regardless of secrets | 07:44:10 | |
| 07:51:13 | ||
| [zhaofengli/colmena] Repo forked into lheckemann/colmena | 14:41:31 | |
| [zhaofengli/colmena] lheckemann opened
pull request
#58: streaming evaluator: respect eval-nodes-limit | 14:42:02 | |
| [zhaofengli/colmena] lheckemann edited pull request #58: streaming evaluator: respect eval-nodes-limit | 14:42:51 | |
What are the implications of this, and how would it be fixed? | 15:28:31 | |
| additionally: won't https://github.com/zhaofengli/colmena/blob/f674ddf1739aa79ac9dcad38771cc89c662eaa6a/src/nix/deployment/mod.rs#L539 always be false if the configuration was built on the target? | 15:41:50 | |
In reply to @winterqt:nixos.devImport From Derivation is when you do import (some derivation) to use the results of a derivation during evaluation, meaning that the normally platform-agnostic evaluation process now requires building a derivation which is platform-specific. In order to build foreign derivations for IFD using configured builders, I normally pass --options builders to nix-instantiate. | 21:01:17 | |
| However, this is disabled in nix-eval-jobs for some magical reason ☹️ https://github.com/nix-community/nix-eval-jobs/blob/a08cada21d1c2eb6a49e39da4ad83d0557cb88b2/src/nix-eval-jobs.cc#L291-L292 | 21:01:35 | |
| I presume Mic92 didn't dig in deeper and more investigation is needed. This means IFD with foreign derivations won't work with nix-eval-jobs unless you set up binfmt so the local machine can build them without using builders (not possible on macOS). | 21:03:19 | |
In reply to @winterqt:nixos.devYes indeed, if the user requests this check by setting deployment.replaceUnknownProfiles = false; (it defaults to true) then it expects the previous profile to be in the deployer's store. | 21:04:37 | |
In reply to @zhaofeng:zhaofeng.lii know what IFD is - but i'm confused on where IFDs are used in Colmena | 21:22:12 | |
In reply to @zhaofeng:zhaofeng.ligot it, thanks | 21:22:17 | |
In reply to @winterqt:nixos.devI don't think it is unless your deployment expression uses it. | 21:26:58 | |
In reply to @winterqt:nixos.devNo, it isn't used in Colmena, but user configurations may have IFD. | 21:27:05 | |
| And stuff like mobile-nixos uses IFD as well | 21:27:32 | |
| 12 Feb 2022 | ||
| [zhaofengli/colmena] lheckemann closed issue #53: Cannot deploy to a host without internet | 09:19:46 | |
| 23:47:26 | ||
| 13 Feb 2022 | ||
| @buckley310:matrix.org: hey, your config looks great, i will try to upgrade my "legacy" niv+morph config to copy yours. one thing i can't see is how i actually use colmena to run a deploy.. any hints? :) | 10:47:20 | |
| grw00: please don't call stable interfaces legacy, flakes is not stable by any means. | 12:23:03 | |
grw00: that said, colmena apply is the command for deploying. | 12:23:17 | |
| i meant legacy in sense of.. hacked together config i have used for some years, not non-flake | 12:27:28 | |
anyway i think in the repo i refer to it's not so simple as colmena apply - error: Flake must define outputs.colmena | 12:29:01 | |
In reply to @grw00:matrix.orgDo you want to use a "shim" to populate outputs.colmena from outputs.nixosConfigurations? | 13:31:39 | |
| (Oh, and are you on nix 2.6, 2.4 or older?) | 13:32:19 | |
| 2.6 | 13:41:31 | |
In reply to @schnecfk:ruhr-uni-bochum.deyeah i thought maybe i had to do this, wasn't sure if it was necessary and i just didnt use right command | 13:42:10 | |
| iirc Buckley changed the approach for the shim, while I found the following solution.
But to have the
in the | 13:44:22 | |
extraModules is not part of value._module.args.modules, so you retain the ability to nixos-rebuild --flake .#hostname build, while also being able to deploy with colmena | 13:45:16 | |