02:12
hmpffff has joined #nixos-systemd
02:14
hmpffff_ has quit [Ping timeout: 272 seconds]
02:28
lovesegfault_ has joined #nixos-systemd
02:31
lovesegfault has quit [Ping timeout: 260 seconds]
07:29
<
flokli >
arianvp: I've been thinking about that weird question all night!
09:10
hmpffff_ has joined #nixos-systemd
09:13
hmpffff has quit [Ping timeout: 265 seconds]
09:57
hmpffff has joined #nixos-systemd
10:00
hmpffff_ has quit [Ping timeout: 260 seconds]
10:23
<
arianvp >
I dont remember what I wanted to ask
10:23
<
arianvp >
makefu: here you forgot this )
10:28
<
makefu >
arianvp: much better now
11:48
<
arianvp >
gchristensen: you facoted out the autoluks module from nixops i see
11:48
<
arianvp >
I am looking at it; and I dont understand how that unit file ever worked
11:49
<
gchristensen >
yeap...
11:49
<
arianvp >
It uses a Before=<mapper-device>.device
11:49
<
arianvp >
but systemd doesnt support waiting on devices
11:49
<
arianvp >
lol.service: Dependency Before=dev-mapper-lol.device ignored (.device units cannot be delayed)
11:49
<
arianvp >
you'll get that error
11:49
<
arianvp >
appearance of devices can trigger other units; but a unit can not be a dependency
_for_ a device unit
11:50
<
arianvp >
Before=dev-mapper-lol.device
11:50
<
arianvp >
DefaultDependencies=false
11:50
<
arianvp >
[Service]
11:50
<
arianvp >
ExecStart=/nix/store/y26qxcq1gg2hrqpxdc58b2fghv2bhxjg-hello-2.10/bin/hello
11:50
<
arianvp >
using this simple reproducer
11:51
<
arianvp >
did you confirm if those modules ever actually worked correctly? Or you just moved them out?
11:51
<
arianvp >
(I neeed something similar now; but I worked around it a bit differently)
11:51
<
gchristensen >
I know for certain people use them, so they must work
11:51
<
gchristensen >
but I have never used them or tried to use them
11:52
<
gchristensen >
or must have worked :)
11:52
<
gchristensen >
but your notes here are 100000000% paying off the decision to move them out of nixops :P
11:53
<
arianvp >
yeh I think the correct solution is to put Before=local-fs-pre.target here instead of Before=/dev/mapper/crypdevice
11:53
<
arianvp >
but not sur
11:53
<
arianvp >
(context: migrating some cloud-init upstart hack at work for setting up autoraid0 to systemd units)
11:54
<
arianvp >
alas not nixos
11:54
<
arianvp >
was hoping for some enlightenment from you but seems Im on my own :'D
11:57
<
{^_^} >
systemd/systemd#10154 (by yoe, 1 year ago, closed): Please allow a servide to be marked as configuring a device
12:00
<
arianvp >
AHA but Wants= do work on device units. ok i understand why the unit works now
12:00
<
arianvp >
cool thanks for rubber ducking
12:01
<
gchristensen >
cool :) I'm glad it worked
12:02
<
arianvp >
ah systemd is quite powerful
12:03
<
arianvp >
this is so much more elegant than the hacks we had in upstart to make this work
12:04
<
gchristensen >
it is almost like having a well defined graph of your system's various hardware, software, and environmental dependencies is a good thing
12:05
<
gchristensen >
and that deeply integrating this in to your environment provides significantbenefits
12:10
<
{^_^} >
#66856 (by flokli, 38 weeks ago, open): systemd: build with cryptsetup support, add cryptsetup generators
12:15
<
flokli >
which is btw still looking for more reviews, and probably some more tests ;-)
12:24
<
arianvp >
that's for mounting and attach/detach
12:24
<
arianvp >
not for creating ;)
12:25
<
arianvp >
gchristensen: note that systemd is
_not_ a graph
12:25
<
arianvp >
it's a hack that makes you think it's a graph
12:25
<
arianvp >
it doesnt keep track of dependency graphs anywhere
12:26
<
arianvp >
(Chapter about Jobs)
12:26
<
arianvp >
it's a long read! But I think it's a mustread
12:26
<
arianvp >
lots of history and perspective of what is systemd and why
12:28
<
gchristensen >
hah.
12:42
<
arianvp >
what is the difference between creating a RAID0 with lvm2 vs with mdam?
12:44
<
aanderse >
gosh i'm so glad zfs exists
12:44
<
aanderse >
i haven't had to touch mdadm in years
12:52
<
arianvp >
well im a bit wary to run database clusters on top of zfs
12:53
<
arianvp >
CoW and database worksloads always make me a bit wary
12:56
hmpffff_ has joined #nixos-systemd
12:57
<
aanderse >
yeah, thats fair
12:57
<
aanderse >
i don't run any real databases on my personal stuff and i only do zfs on personal stuff really
12:57
<
aanderse >
work machines all run on vmware so zfs is kinda pointless
12:57
<
aanderse >
so is redundancy
12:59
hmpffff has quit [Ping timeout: 272 seconds]
13:56
<
aanderse >
hmm... we don't have a "user" tmpfiles option in nixos
13:57
<
aanderse >
i don't see where i should be creating user tmpfiles files on nixos from this
13:58
<
aanderse >
if i had to guess /etc/user-tmpfiles.d/
14:04
<
{^_^} >
#62813 (by peterhoeg, 48 weeks ago, merged): nixos/systemd: enable systemd-tmpfiles-setup and -clean for user sessions
14:04
<
aanderse >
so i see reference to a systemd.user.tmpfiles in that PR... but i see no option
14:04
<
aanderse >
i take it no one ever went ahead?
14:05
<
aanderse >
i also see systemd upstream doesn't support /etc/user-tmpfiles.d/
16:57
<
flokli >
I mean, we can install user templates all the way we want. Both some of this stuff really needs home-manager to work properly.
16:57
<
flokli >
When do we make home-manager a first-class citizen already?
16:59
<
aanderse >
it looks like systemd doesn't read user tmpfiles from any spots we would put them
16:59
<
aanderse >
i mean outside of $HOME
16:59
<
aanderse >
the only location is /usr something or other
17:00
<
aanderse >
systemd doesn't support /etc/user-tmpfiles.d :\
17:01
<
{^_^} >
systemd/systemd#11444 (by JanLuca, 1 year ago, open): Support /etc/user-tmpfiles.d for user-tmpfiles.d configuration
18:58
hmpffff has joined #nixos-systemd
19:01
hmpffff_ has quit [Ping timeout: 258 seconds]
19:02
hmpffff__ has joined #nixos-systemd
19:04
hmpffff_ has joined #nixos-systemd
19:04
hmpffff has quit [Ping timeout: 244 seconds]
19:07
hmpffff__ has quit [Ping timeout: 256 seconds]
19:10
hmpffff has joined #nixos-systemd
19:13
hmpffff__ has joined #nixos-systemd
19:13
hmpffff_ has quit [Ping timeout: 260 seconds]
19:15
hmpffff has quit [Ping timeout: 265 seconds]
19:31
hmpffff has joined #nixos-systemd
19:34
hmpffff__ has quit [Ping timeout: 256 seconds]
19:35
hmpffff_ has joined #nixos-systemd
19:38
hmpffff__ has joined #nixos-systemd
19:38
hmpffff has quit [Ping timeout: 272 seconds]
19:41
hmpffff_ has quit [Ping timeout: 260 seconds]
20:20
lovesegfault_ has quit [Quit: WeeChat 2.8]
23:42
<
arianvp >
just pulled this cool trick
23:42
<
arianvp >
no need for environment.etc
_yet_
23:42
<
arianvp >
can just BindPaths= the required config files into systemd service if it insits in finding config in /etc instead of nix store path
23:43
<
arianvp >
so currently have an empty-etc distro and it boots fine :D
23:44
<
arianvp >
systemd-sysusers ets up /etc/passwd and /etc/shadow on start