Fix module

This commit is contained in:
2025-01-21 11:31:35 +01:00
parent acb1bf3065
commit 95362cc9bc
2 changed files with 7 additions and 8 deletions

View File

@@ -19,10 +19,11 @@
tauron-scrapper = pkgs.callPackage ./package.nix {};
default = tauron-scrapper;
};
})
// {
nixosModules = rec {
tauron-scrapper = pkgs.callPackage ./module.nix {inherit self;};
tauron-scrapper = import ./module.nix self;
default = tauron-scrapper;
};
});
};
}

View File

@@ -1,14 +1,12 @@
{
self: {
config,
coreutils-full,
formats,
pkgs,
system,
utils,
lib,
self,
...
}:
with lib; let
inherit (pkgs) coreutils-full formats utils;
inherit (utils.systemdUtils.unitOptions) unitOption;
cfg = config.services.tauron-scrapper;
yamlConfig = (formats.yaml {}).generate "tauron-scrapper-config.yaml" cfg.config;