Fix module
This commit is contained in:
@@ -19,10 +19,11 @@
|
|||||||
tauron-scrapper = pkgs.callPackage ./package.nix {};
|
tauron-scrapper = pkgs.callPackage ./package.nix {};
|
||||||
default = tauron-scrapper;
|
default = tauron-scrapper;
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
// {
|
||||||
nixosModules = rec {
|
nixosModules = rec {
|
||||||
tauron-scrapper = pkgs.callPackage ./module.nix {inherit self;};
|
tauron-scrapper = import ./module.nix self;
|
||||||
default = tauron-scrapper;
|
default = tauron-scrapper;
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
self: {
|
||||||
config,
|
config,
|
||||||
coreutils-full,
|
pkgs,
|
||||||
formats,
|
|
||||||
system,
|
system,
|
||||||
utils,
|
|
||||||
lib,
|
lib,
|
||||||
self,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
inherit (pkgs) coreutils-full formats utils;
|
||||||
inherit (utils.systemdUtils.unitOptions) unitOption;
|
inherit (utils.systemdUtils.unitOptions) unitOption;
|
||||||
cfg = config.services.tauron-scrapper;
|
cfg = config.services.tauron-scrapper;
|
||||||
yamlConfig = (formats.yaml {}).generate "tauron-scrapper-config.yaml" cfg.config;
|
yamlConfig = (formats.yaml {}).generate "tauron-scrapper-config.yaml" cfg.config;
|
||||||
|
|||||||
Reference in New Issue
Block a user