Fix nixos module
This commit is contained in:
parent
19772cd178
commit
5f81690d16
|
@ -17,11 +17,14 @@ in {
|
|||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.glados = {
|
||||
wantedBy = [ "default.target" ];
|
||||
requires = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.glados}/bin/glados --db $STATE_DIRECTORY/state.yml";
|
||||
EnvironmentFile = "${cfg.envFile}";
|
||||
Environment = "RUST_LOG=warn";
|
||||
StateDirectory = "glados";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue