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 {}; 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;
}; };
}); };
} }

View File

@@ -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;