Fix nixos module

This commit is contained in:
Malte Tammena 2021-12-06 11:30:35 +01:00
parent 19772cd178
commit 5f81690d16

View file

@ -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";
};
};
};