!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

301 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena104 Servers

Load older messages


SenderMessageTime
10 Feb 2022
@pinpox:matrix.orgpinpoxCan I use system.activationScripts for it?16:03:42
@janejasperous:one.ems.hostJane JasperousMaybe you can deploy into tmpfs and use impermanence module16:11:53
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @pinpox:matrix.org
Can I use system.activationScripts for it?
I commented with a potential solution.
18:57:37
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @pinpox:matrix.org
Whops, sorry for the "edited issue.." spam.
No worries - I'm planning to replace the bot regardless since it's pretty spammy even in the normal case (3 link previews for a message)
18:58:17
11 Feb 2022
@pinpox:matrix.orgpinpox Zhaofeng Li: Just saw it, thank you! 07:43:22
@pinpox:matrix.orgpinpoxThat 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 secrets07:44:10
@cw:kernelpanic.cafeChinchilla Washington joined the room.07:51:13
@github:maunium.net@github:maunium.net [zhaofengli/colmena] Repo forked into lheckemann/colmena 14:41:31
@github:maunium.net@github:maunium.net [zhaofengli/colmena] lheckemann opened pull request #58: streaming evaluator: respect eval-nodes-limit
14:42:02
@github:maunium.net@github:maunium.net [zhaofengli/colmena] lheckemann edited pull request #58: streaming evaluator: respect eval-nodes-limit 14:42:51
@winterqt:nixos.devWinter (she/her)

// FIXME: nix-eval-jobs currently does not support IFD with builders

What are the implications of this, and how would it be fixed?

15:28:31
@winterqt:nixos.devWinter (she/her)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
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev

// FIXME: nix-eval-jobs currently does not support IFD with builders

What are the implications of this, and how would it be fixed?

Import 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
@zhaofeng:zhaofeng.liZhaofeng LiHowever, 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-L29221:01:35
@zhaofeng:zhaofeng.liZhaofeng LiI 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
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
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?
Yes 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
@winterqt:nixos.devWinter (she/her)
In reply to @zhaofeng:zhaofeng.li
Import 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.
i know what IFD is - but i'm confused on where IFDs are used in Colmena
21:22:12
@winterqt:nixos.devWinter (she/her)
In reply to @zhaofeng:zhaofeng.li
Yes 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.
got it, thanks
21:22:17
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt
In reply to @winterqt:nixos.dev
i know what IFD is - but i'm confused on where IFDs are used in Colmena
I don't think it is unless your deployment expression uses it.
21:26:58
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
i know what IFD is - but i'm confused on where IFDs are used in Colmena
No, it isn't used in Colmena, but user configurations may have IFD.
21:27:05
@zhaofeng:zhaofeng.liZhaofeng LiAnd stuff like mobile-nixos uses IFD as well21:27:32
12 Feb 2022
@github:maunium.net@github:maunium.net [zhaofengli/colmena] lheckemann closed issue #53: Cannot deploy to a host without internet 09:19:46
@grw00:matrix.orggrw00 joined the room.23:47:26
13 Feb 2022
@grw00:matrix.orggrw00 @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
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt grw00: please don't call stable interfaces legacy, flakes is not stable by any means. 12:23:03
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetzt grw00: that said, colmena apply is the command for deploying. 12:23:17
@grw00:matrix.orggrw00i meant legacy in sense of.. hacked together config i have used for some years, not non-flake12:27:28
@grw00:matrix.orggrw00 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
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @grw00:matrix.org
anyway i think in the repo i refer to it's not so simple as colmena apply - error: Flake must define outputs.colmena
Do you want to use a "shim" to populate outputs.colmena from outputs.nixosConfigurations?
13:31:39
@schnecfk:ruhr-uni-bochum.deCRTified(Oh, and are you on nix 2.6, 2.4 or older?)13:32:19

Show newer messages


Back to Room ListRoom Version: 6