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

Fix glances

parent 5925d70e
...@@ -14,19 +14,20 @@ in { ...@@ -14,19 +14,20 @@ in {
type = types.str; type = types.str;
}; };
}; };
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.python36Packages.glances ]; environment.systemPackages = [ pkgs.python36Packages.glances ];
systemd.services.glances = {
description = "Glances server"; systemd.services.glances = {
wantedBy = [ "multi-user.target" ]; description = "Glances server";
after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ]; after = [ "network-online.target" ];
serviceConfig = { wants = [ "network-online.target" ];
User = "${cfg.user}"; serviceConfig = {
ExecStart = "${pkgs.python36Packages.glances}/bin/glances -w"; User = "${cfg.user}";
Restart = "on-abort"; ExecStart = "${pkgs.python36Packages.glances}/bin/glances -w";
}; Restart = "on-abort";
}; };
}; };
}; };
......
Markdown is supported
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