Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Server maintenance on Tue 31.5. at 12:00.
Open sidebar
Samuel Lauren
coffeecam
Commits
3fa555b4
Commit
3fa555b4
authored
Mar 07, 2018
by
Samuel Laurén
Browse files
Fix glances
parent
5925d70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/glances.nix
View file @
3fa555b4
...
@@ -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
}
"
;
Res
tart
=
"
on-abort
"
;
ExecS
tart
=
"
${
pkgs
.
python36Packages
.
glances
}
/bin/glances -w
"
;
}
;
Restart
=
"on-abort"
;
};
};
};
};
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment