Fix eval warning: stdenv.hostPlatform.system
This commit is contained in:
@@ -57,14 +57,14 @@
|
||||
'';
|
||||
in lib.mkIf cfg.enable {
|
||||
home.sessionVariables.FRAJTANO_DIR = cfg.dir;
|
||||
home.packages = [self.packages.${pkgs.system}.default];
|
||||
home.packages = [self.packages.${pkgs.stdenv.hostPlatform.system}.default];
|
||||
|
||||
systemd.user.services.frajtano = {
|
||||
Unit.Description = "frajtano";
|
||||
Unit.After = ["default.target"];
|
||||
Service.Type = "notify";
|
||||
Service.Environment = ["'FRAJTANO_DIR=${cfg.dir}'" "'FRAJTANO_CONFIG=${configFile}'"];
|
||||
Service.ExecSearchPath = ["${self.packages.${pkgs.system}.default}/bin"];
|
||||
Service.ExecSearchPath = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin"];
|
||||
Service.ExecStart = "frajtano start";
|
||||
Install.WantedBy = ["default.target"];
|
||||
};
|
||||
@@ -76,7 +76,7 @@
|
||||
FRAJTANO_DIR = "${cfg.dir}";
|
||||
FRAJTANO_CONFIG = "${configFile}";
|
||||
};
|
||||
ProgramArguments = ["${self.packages.${pkgs.system}.default}/bin/frajtano" "start"];
|
||||
ProgramArguments = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/frajtano" "start"];
|
||||
RunAtLoad = true;
|
||||
KeepAlive = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user