Commit 3fa555b4 authored by Samuel Laurén's avatar Samuel Laurén
Browse files

Fix glances

parent 5925d70e
......@@ -14,19 +14,20 @@ in {
type = types.str;
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.python36Packages.glances ];
systemd.services.glances = {
description = "Glances server";
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
User = "${cfg.user}";
ExecStart = "${pkgs.python36Packages.glances}/bin/glances -w";
Restart = "on-abort";
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.python36Packages.glances ];
systemd.services.glances = {
description = "Glances server";
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
User = "${cfg.user}";
ExecStart = "${pkgs.python36Packages.glances}/bin/glances -w";
Restart = "on-abort";
};
};
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment