nixos/guix: fix systemd socket unit

This commit is contained in:
Gabriel Arazas 2023-12-21 22:18:56 +08:00
parent f450b7ca70
commit d3e246f9fa
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -228,14 +228,8 @@ in
description = "Guix daemon socket";
before = [ "multi-user.target" ];
listenStreams = [ "${cfg.stateDir}/guix/daemon-socket/socket" ];
unitConfig = {
RequiresMountsFor = [
cfg.storeDir
cfg.stateDir
];
ConditionPathIsReadWrite = "${cfg.stateDir}/guix/daemon-socket";
};
wantedBy = [ "socket.target" ];
unitConfig.RequiresMountsFor = [ cfg.storeDir cfg.stateDir ];
wantedBy = [ "sockets.target" ];
};
systemd.mounts = [{