flexget: move out of python-packages.nix

because it is an application and not a library.
This commit is contained in:
Frederik Rietdijk
2016-12-31 09:52:45 +01:00
parent 0cb52dc836
commit 361dae67d4
3 changed files with 5 additions and 35 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ with lib;
let
cfg = config.services.flexget;
pkg = pkgs.python27Packages.flexget;
pkg = pkgs.flexget;
ymlFile = pkgs.writeText "flexget.yml" ''
${cfg.config}
@@ -54,12 +54,12 @@ in {
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.python27Packages.flexget ];
environment.systemPackages = [ pkg ];
systemd.services = {
flexget = {
description = "FlexGet Daemon";
path = [ pkgs.pythonPackages.flexget ];
path = [ pkg ];
serviceConfig = {
User = cfg.user;
Environment = "TZ=${config.time.timeZone}";