!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1250 Members
NixOS Deployment tooling309 Servers

Load older messages


SenderMessageTime
17 Jun 2021
@grahamc:nixos.org@grahamc:nixos.org is before or after the right enum values? is there value in having a before-and-after? 11:45:26
@hexa:lossy.networkhexaafter=localfs.target, before=myservice.service11:46:32
@hexa:lossy.networkhexalike you could really make sure the service never goes into a failed state if that worked out11:47:02
@hexa:lossy.networkhexabut you probably only can affect things post network(-online).target anyway, so that may be moot11:47:28
@grahamc:nixos.org@grahamc:nixos.orgI don't think that is the design srhb has mentioned11:53:52
@srhb:matrix.orgsrhbI was thinking something that only knows about activation, yeah, so entirely morph-side.11:54:12
@grahamc:nixos.org@grahamc:nixos.orgbefore / after in the context of "before or after activation"11:54:19
@hexa:lossy.networkhexaoh11:55:22
@hexa:lossy.networkhexaI'm in the pre-activation camp, not entirely sure of a use case when you'd want post-activation11:58:00
@grahamc:nixos.org@grahamc:nixos.orgwell11:59:55
@grahamc:nixos.org@grahamc:nixos.orgI personally find it useful for the users that own the secrets to exist when the secrets are uploaded12:00:20
@grahamc:nixos.org@grahamc:nixos.orgalso useful to use tmpfiles.d to create the directories they're in, otherwise morph will create the directory and it'll be owned by root, iirc12:02:49
@srhb:matrix.orgsrhb"post" is what previous nixops users tend to expect, and provides consistency with users, units etc., while morph has always been "pre" and left it up to the user to get consistency, yeah.12:03:13
@grahamc:nixos.org@grahamc:nixos.orgone totally valid option is to say "Well, this is just what morph does, if you want something different you're looking for a different tool"12:04:21
@srhb:matrix.orgsrhbOnce we get into hook territory (check some state on remote machine before doing $foo) I feel less confident giving "this will definitely get merged"-advice of the cuff :) 12:04:36
@grahamc:nixos.org@grahamc:nixos.org(though in that case I would recommend deleting secrets owned by non-root users)12:04:45
@grahamc:nixos.org@grahamc:nixos.org * (though in that case I would recommend deleting support for secrets owned by non-root users)12:04:50
@srhb:matrix.orgsrhbI think pre/post-activation is totally within scope.12:04:59
@srhb:matrix.orgsrhbI think the other things are too, but that's just not something I want to confidently say "this'll get merged" about :) 12:05:15
@srhb:matrix.orgsrhbAnd have someone be very sad when it doesn't immediately. 😅12:05:36
@hexa:lossy.networkhexaseems you two got this topic handled well, and my understanding was quite a bit lacking12:06:10
@grahamc:nixos.org@grahamc:nixos.orgI'm actually less sure!12:06:31
@srhb:matrix.orgsrhbIt's always a little sad when I participate and confuse people more. 😅12:06:50
@grahamc:nixos.org@grahamc:nixos.orglike maybe secrets are just too complicated to implement as part of morph itself and have a coherent / complete story12:07:03
@grahamc:nixos.org@grahamc:nixos.org
In reply to @grahamc:nixos.org
one totally valid option is to say "Well, this is just what morph does, if you want something different you're looking for a different tool"
in other words, this is a real suggestion, not snark or anything
12:07:23
@srhb:matrix.orgsrhbI think that is likely the case, but post activation is low-hanging-fruit and provides the features that nixops has.12:07:26
@grahamc:nixos.org@grahamc:nixos.orgyeah12:07:31
@srhb:matrix.orgsrhbWhich a lot of people really do expect.12:07:49
@grahamc:nixos.org@grahamc:nixos.orgnot quite, actually, because nixops's secrets support also creates automatic systemd services you can depend on, which "start" when that specific secret is uploaded12:08:03
@srhb:matrix.orgsrhbYes, but you could implement that yourself with "post"12:08:42

Show newer messages


Back to Room ListRoom Version: 6