00:03
pbb has quit [Ping timeout: 272 seconds]
00:04
pbb has joined #nixos-systemd
00:45
hmpffff has quit [Ping timeout: 256 seconds]
00:45
hmpffff_ has joined #nixos-systemd
00:48
pbb has quit [Quit: No Ping reply in 180 seconds.]
00:49
pbb has joined #nixos-systemd
01:00
hmpffff_ has quit [Ping timeout: 272 seconds]
05:26
hmpffff has joined #nixos-systemd
05:29
hmpffff_ has joined #nixos-systemd
05:32
hmpffff has quit [Ping timeout: 256 seconds]
06:26
hmpffff has joined #nixos-systemd
06:27
hmpffff_ has quit [Ping timeout: 265 seconds]
06:45
hmpffff_ has joined #nixos-systemd
06:48
hmpffff has quit [Ping timeout: 256 seconds]
06:53
hmpffff has joined #nixos-systemd
06:56
hmpffff_ has quit [Ping timeout: 256 seconds]
06:58
hmpffff_ has joined #nixos-systemd
07:01
hmpffff has quit [Ping timeout: 265 seconds]
07:22
hmpffff has joined #nixos-systemd
07:24
hmpffff__ has joined #nixos-systemd
07:25
hmpffff_ has quit [Ping timeout: 265 seconds]
07:27
hmpffff has quit [Ping timeout: 246 seconds]
08:03
hmpffff__ has quit [Read error: Connection reset by peer]
08:04
hmpffff has joined #nixos-systemd
08:07
hmpffff_ has joined #nixos-systemd
08:10
hmpffff has quit [Ping timeout: 260 seconds]
08:14
hmpffff has joined #nixos-systemd
08:16
hmpffff_ has quit [Ping timeout: 240 seconds]
14:32
hmpffff_ has joined #nixos-systemd
14:35
hmpffff has quit [Ping timeout: 265 seconds]
15:41
balsoft has joined #nixos-systemd
15:42
infinisil has joined #nixos-systemd
15:43
emily has joined #nixos-systemd
15:43
<
balsoft >
Are there any logs for this?
15:43
<
balsoft >
Oh, samueldr has them. Sorry.
15:45
<
balsoft >
gchristensen: I think I've seen such issues before, but I don't remember how I fixed them :)
15:45
<
flokli >
unit files of some sort"
15:46
<
balsoft >
Oh, I see
15:46
<
balsoft >
I don't think this was part of my original question, but it's nice to know that there's this hack
15:46
<
flokli >
We could actually make /etc/systemd/system itself mutable again (but only contain "manually provided units"), and introduce another location for units "part of the NixOS system configuration"
15:46
<
flokli >
balsoft: please don't just use /etc/systemd-mutable lol
15:47
<
flokli >
this is currently Dysnomia private API of some sorts, and might be moved to a Dysnomia-specific thing
15:48
<
balsoft >
Nah, I'll just continue specifying a service in nixos configuration with `/nix/var/nix/profiles/my-app/bin/my-app` as `ExecStart` :)
15:48
<
flokli >
you might be able to have an activation script (or systemd generator) provisioning units in /run/systemd/system/…
15:48
<
balsoft >
Huh, interesting idea
15:49
<
flokli >
there has also been some discussion regarding reload behaviour - but I leave the log archaeology to you :-)
15:52
cransom has joined #nixos-systemd
16:00
<
gchristensen >
it is such a shame that there is no like, project-level systemd thing
16:00
<
gchristensen >
it would eat the lunch of foreman etc.
16:00
<
flokli >
gchristensen: there is. It's called portable systemd services
16:02
<
gchristensen >
no, this is different I think
16:12
<
flokli >
so what are you looking for?
16:28
<
andi- >
gchristensen: you mean supervisord? ;-)
16:29
<
andi- >
much more involved then foreman but also more features
16:29
<
gchristensen >
I'm looking for a `foreman start` that I can apply to a nixos module
16:29
<
gchristensen >
inside a nix-shell
20:03
hmpffff has joined #nixos-systemd
20:06
hmpffff_ has quit [Ping timeout: 265 seconds]
20:21
<
arianvp >
TIL that systemd supports reading systemd units from a specific unit path
20:22
<
arianvp >
quite handy ;)
20:22
<
arianvp >
but not sure how we could change that env variable without re-execing :P
20:22
<
arianvp >
so maybe not so useful in nixos proper
20:22
<
arianvp >
oh wait wat
20:22
<
arianvp >
it's not just a unit path
20:22
<
arianvp >
but any amount of unit paths
20:22
<
arianvp >
so you can do
20:22
<
arianvp >
SYSTEMD_UNIT_PATH=our:custom:location:specific:nixos
20:23
<
arianvp >
without patching anything in systemd
20:23
<
arianvp >
flokli: !!
20:23
<
arianvp >
and it will read those paths in order; a la $PATH
20:24
<
arianvp >
trailing : means "in whatever paths you defined + the ones defined by system"
20:30
<
flokli >
arianvp: how do they align with the rest of the paths baked into the binary?
20:30
<
arianvp >
this is just for units
20:31
<
arianvp >
all the others paths use the CONF_PATHS macro. unit paths are the exception
20:32
<
flokli >
yes, but does this totally replace the other unit paths?
20:37
<
arianvp >
if you set
20:37
<
arianvp >
SYSTEMD_UNIT_PATH=/my/path then it replaces
20:37
<
arianvp >
if you have a trailing : it "adds"
20:37
<
arianvp >
SYSTEMD_UNIT_PATH=/my/path: adds
20:37
<
arianvp >
so that will expand to
20:38
<
arianvp >
SYSTEMD_UNIT_PATH=/my/path:/usr/lib/systemd:/etc/systemd:/etc/systemd.generator etc
20:38
<
arianvp >
documented in `man systemd` even :P
20:38
<
arianvp >
this means we can at least drop the unit path patch. neat
20:39
<
arianvp >
but yeh your custom path will always have presedence over the built-in ones
20:39
<
arianvp >
no control over that
20:47
<
flokli >
well, that should be ok to get rid of that one patch at least
20:47
<
flokli >
wanna file a PR?
22:08
<
arianvp >
will do tomorrow
23:44
pbb has quit [Remote host closed the connection]