module: Fix pkgs.callPackage not neccessary.
This commit is contained in:
parent
2886c88379
commit
2c1e20b469
1 changed files with 5 additions and 5 deletions
10
module.nix
10
module.nix
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
cfg = config.services.peerix;
|
cfg = config.services.peerix;
|
||||||
|
|
||||||
peerix = pkgs.callPackage ./default.nix {};
|
peerix = import ./default.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = with lib; {
|
options = with lib; {
|
||||||
|
@ -121,14 +121,14 @@ in
|
||||||
])
|
])
|
||||||
|
|
||||||
(lib.mkIf (cfg.privateKeyFile != null) [
|
(lib.mkIf (cfg.privateKeyFile != null) [
|
||||||
(toString cfg.privateKeyFile)
|
cfg.privateKeyFile
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
ExecPaths = [
|
ExecPaths = [
|
||||||
"/nix/store"
|
"/nix/store"
|
||||||
];
|
];
|
||||||
Environment = lib.mkIf (cfg.privateKeyFile != null) [
|
Environment = lib.mkIf (cfg.privateKeyFile != null) [
|
||||||
"NIX_SECRET_KEY_FILE=${toString cfg.privateKeyFile}"
|
"NIX_SECRET_KEY_FILE=${cfg.privateKeyFile}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
|
@ -141,8 +141,8 @@ in
|
||||||
"http://127.0.0.1:12304/"
|
"http://127.0.0.1:12304/"
|
||||||
];
|
];
|
||||||
binaryCachePublicKeys = [
|
binaryCachePublicKeys = [
|
||||||
lib.mkIf (cfg.publicKeyFile != null) (builtins.readFile cfg.publicKeyFile)
|
(lib.mkIf (cfg.publicKeyFile != null) (builtins.readFile cfg.publicKeyFile))
|
||||||
lib.mkIf (cfg.publicKey != null) cfg.publicKey
|
(lib.mkIf (cfg.publicKey != null) cfg.publicKey)
|
||||||
];
|
];
|
||||||
|
|
||||||
extraOptions = lib.mkIf (cfg.globalCacheTTL != null) ''
|
extraOptions = lib.mkIf (cfg.globalCacheTTL != null) ''
|
||||||
|
|
Loading…
Reference in a new issue