forked from Fediversity/Fediversity
move NIX_DIR to env, making its use more explicit
This commit is contained in:
parent
53658e9880
commit
53d3791eaa
1 changed files with 2 additions and 2 deletions
|
@ -21,6 +21,8 @@ in
|
||||||
];
|
];
|
||||||
env = {
|
env = {
|
||||||
NPINS_DIRECTORY = toString ../npins;
|
NPINS_DIRECTORY = toString ../npins;
|
||||||
|
# explicitly use nix, as e.g. lix does not have configurable-impure-env
|
||||||
|
NIX_DIR = pkgs.nix;
|
||||||
};
|
};
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
# in production, secrets are passed via CREDENTIALS_DIRECTORY by systemd.
|
# in production, secrets are passed via CREDENTIALS_DIRECTORY by systemd.
|
||||||
|
@ -30,8 +32,6 @@ in
|
||||||
export CREDENTIALS_DIRECTORY=${builtins.toString ./.credentials}
|
export CREDENTIALS_DIRECTORY=${builtins.toString ./.credentials}
|
||||||
export DATABASE_URL="sqlite:///${toString ./src}/db.sqlite3"
|
export DATABASE_URL="sqlite:///${toString ./src}/db.sqlite3"
|
||||||
'';
|
'';
|
||||||
# explicitly use nix, as e.g. lix does not have configurable-impure-env
|
|
||||||
NIX_DIR = pkgs.nix;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module = import ./nix/configuration.nix;
|
module = import ./nix/configuration.nix;
|
||||||
|
|
Loading…
Add table
Reference in a new issue