1
0
Fork 0

panel service: set NIX_BIN

This commit is contained in:
kiara Grouwstra 2025-03-20 10:47:09 +01:00
parent ce5126c0fa
commit e13f24eba0
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 2 additions and 3 deletions

View file

@ -8,7 +8,6 @@
},
}:
let
inherit (pkgs) lib;
manage = pkgs.writeScriptBin "manage" ''
exec ${pkgs.lib.getExe pkgs.python3} ${toString ./src/manage.py} $@
'';
@ -23,8 +22,6 @@ in
env = {
NPINS_DIRECTORY = toString ../npins;
# explicitly use nix, as e.g. lix does not have configurable-impure-env
NIX_BIN = lib.getExe pkgs.nix;
REPO_DIR = toString ../.;
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
DATABASE_URL = "sqlite:///${toString ./src}/db.sqlite3";
};

View file

@ -193,6 +193,8 @@ in
environment = {
USER_SETTINGS_FILE = "${configFile}";
DATABASE_URL = database-url;
NIX_BIN = lib.getExe pkgs.nix;
REPO_DIR = ../..;
};
};