Fix eval warning: stdenv.hostPlatform.system

This commit is contained in:
2026-02-19 10:19:25 +00:00
parent 68e2111b4c
commit de2f1b16e4
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
};