| 10 Feb 2022 |
pinpox | Can I use system.activationScripts for it? | 16:03:42 |
Jane Jasperous | Maybe you can deploy into tmpfs and use impermanence module | 16:11:53 |
Zhaofeng Li | In reply to @pinpox:matrix.org Can I use system.activationScripts for it? I commented with a potential solution. | 18:57:37 |
Zhaofeng 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 | Zhaofeng Li: Just saw it, thank you! | 07:43:22 |
pinpox | 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 |
| Chinchilla Washington joined the room. | 07:51:13 |
@github:maunium.net | [zhaofengli/colmena] Repo forked into lheckemann/colmena | 14:41:31 |
@github:maunium.net | [zhaofengli/colmena] lheckemann opened
pull request
#58: streaming evaluator: respect eval-nodes-limit
| 14:42:02 |
@github:maunium.net | [zhaofengli/colmena] lheckemann edited
pull request
#58: streaming evaluator: respect eval-nodes-limit
| 14:42:51 |
Winter (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 |
Winter (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 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 Li | 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 |
Zhaofeng Li | 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 |
Zhaofeng 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 |
Winter (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 |
Winter (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 |
Linux 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 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 Li | And stuff like mobile-nixos uses IFD as well | 21:27:32 |
| 12 Feb 2022 |
@github:maunium.net | [zhaofengli/colmena] lheckemann closed
issue
#53: Cannot deploy to a host without internet
| 09:19:46 |
| grw00 joined the room. | 23:47:26 |
| 13 Feb 2022 |
grw00 | @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 |
Linux Hackerman is moving: @linus:schreibt.jetzt | grw00: please don't call stable interfaces legacy, flakes is not stable by any means. | 12:23:03 |
Linux Hackerman is moving: @linus:schreibt.jetzt | grw00: that said, colmena apply is the command for deploying. | 12:23:17 |
grw00 | i meant legacy in sense of.. hacked together config i have used for some years, not non-flake | 12:27:28 |
grw00 | 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 |
CRTified | 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 |
CRTified | (Oh, and are you on nix 2.6, 2.4 or older?) | 13:32:19 |