!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
25 Jul 2022
@linus:schreibt.jetztLinux Hackermanthere's not much to it besides setting nixpkgs.system in the node's configuration15:42:22
@grahamc:nixos.org@grahamc:nixos.orgoh! of course!15:42:34
@grahamc:nixos.org@grahamc:nixos.orgthanks15:42:35
@grahamc:nixos.org@grahamc:nixos.orgI was thrown off by the meta.nixpkgs being set15:42:43
@linus:schreibt.jetztLinux HackermanYeah, that's only the nixpkgs used to evaluate it though15:43:39
@grahamc:nixos.org@grahamc:nixos.orgmakes sense15:44:30
@linus:schreibt.jetztLinux Hackermansomething to note is that Colmena's flake support is incomplete, the biggest issue being that it requires impure evaluation.15:44:41
@linus:schreibt.jetztLinux HackermanThat's bitten me before, with it picking up ~/.config/nixpkgs/config.nix15:45:00
@grahamc:nixos.org@grahamc:nixos.orggotcha15:45:16
@grahamc:nixos.org@grahamc:nixos.orgit also seems to get a bit weird with some secrets support15:45:28
@grahamc:nixos.org@grahamc:nixos.org and the reboot behavior is not to my taste at the moment :) 15:45:54
@grahamc:nixos.org@grahamc:nixos.orgbut switching from nixops was almost entirely pain-free15:48:11
@linus:schreibt.jetztLinux Hackerman grahamc (he/him): oh also keep in mind if you haven't encrypted your secrets and you're using flakes with colmena, the secrets are now world-readable in your nix store. 15:55:41
@grahamc:nixos.org@grahamc:nixos.orgyeah, luckily they're barely secret15:57:29
@grahamc:nixos.org@grahamc:nixos.orgoh actually no they didn't get copied in, I "fixed" it like this:15:58:03
@grahamc:nixos.org@grahamc:nixos.orgcolmena = let secrets = import /home/....mysecrets.nix; in15:58:24
@grahamc:nixos.org@grahamc:nixos.orgthat file has no secrets, but points to other files, and loading those other files always failed15:58:52
@linus:schreibt.jetztLinux Hackermanaaah ok15:59:04
30 Jul 2022
@winterqt:nixos.devWinter (she/her) Zhaofeng Li: would you accept a PR / consider running rustfmt on the source tree? 04:21:48
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
Zhaofeng Li: would you accept a PR / consider running rustfmt on the source tree?
Sure, done
05:14:42
@winterqt:nixos.devWinter (she/her)I assume just like interactive SSH auth isn't supported, interactive privilege escalation (i.e. entering a password for sudo during activation) also isn't supported?05:33:09
@winterqt:nixos.devWinter (she/her)Is the best workaround in that case to run sudo beforehand or something so it caches your session for a bit?05:33:39
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
I assume just like interactive SSH auth isn't supported, interactive privilege escalation (i.e. entering a password for sudo during activation) also isn't supported?
No, it's not supported except for apply-local. It's hard for it to be done in a manner with good user experience.
05:59:01
@zhaofeng:zhaofeng.liZhaofeng LiNote that interactive auth that doesn't require keyboard interaction should "work", like the Tailscale SSH check mode (haven't tested though). But still not a good experience with the default spinner UI06:00:26
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
Is the best workaround in that case to run sudo beforehand or something so it caches your session for a bit?
I don't think sudo is cached across SSH sessions.
06:00:56
@winterqt:nixos.devWinter (she/her)
In reply to @zhaofeng:zhaofeng.li
I don't think sudo is cached across SSH sessions.
I'm talking specifically in the context of apply-local here.
06:02:41
@winterqt:nixos.devWinter (she/her)Is should_switch_profile always true? If not, seems like there's an edge case that isn't handled here.06:05:11
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
I'm talking specifically in the context of apply-local here.
Then it should be supported. After https://github.com/zhaofengli/colmena/issues/85 apply-local was changed to use the verbose UX if --sudo is passed so it doesn't interfere with the interactive prompt. What are you encountering?
06:05:32
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @winterqt:nixos.dev
Is should_switch_profile always true? If not, seems like there's an edge case that isn't handled here.
What's the edge case? Currently it's true for boot and switch
06:08:26
@winterqt:nixos.devWinter (she/her)
In reply to @zhaofeng:zhaofeng.li
What's the edge case? Currently it's true for boot and switch
See here. If it's anything else, the privilege escalation command may hang indefinitely waiting for a password or similar since it doesn't passthrough like the profile switch invocation does
06:13:28

There are no newer messages yet.


Back to Room ListRoom Version: 6