update module
This commit is contained in:
parent
5ff998eb28
commit
b93c667334
1 changed files with 15 additions and 19 deletions
34
module.nix
34
module.nix
|
|
@ -9,6 +9,20 @@ let
|
||||||
|
|
||||||
cfg = config.services.verwaltungstracker;
|
cfg = config.services.verwaltungstracker;
|
||||||
|
|
||||||
|
verwaltungstracker = pkgs.froide-govplan.overridePythonAttrs (oldAttrs: {
|
||||||
|
src = pkgs.fetchFromGitea {
|
||||||
|
domain = "git.project-insanity.org";
|
||||||
|
owner = "onny";
|
||||||
|
repo = "verwaltungstracker";
|
||||||
|
rev = "fa82bf579a4a17460f6489843f2d8e2cf8b4f7c8";
|
||||||
|
hash = "sha256-5vE8pLSAezULKb+B8OF4C/8r4C8b1aFNvbkRZ7+ZCXM=";
|
||||||
|
};
|
||||||
|
dependencies = oldAttrs.dependencies ++ [ oldAttrs.passthru.python.pkgs.mastodon-py ];
|
||||||
|
passthru = oldAttrs.passthru // {
|
||||||
|
pythonPath = "${pkgs.python3.pkgs.makePythonPath [pkgs.python3.pkgs.mastodon-py]}:${oldAttrs.passthru.pythonPath}";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -36,27 +50,9 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
(self: super: {
|
|
||||||
froide-govplan = super.froide-govplan.overridePythonAttrs (oldAttrs: {
|
|
||||||
src = pkgs.fetchFromGitea {
|
|
||||||
domain = "git.project-insanity.org";
|
|
||||||
owner = "onny";
|
|
||||||
repo = "verwaltungstracker";
|
|
||||||
rev = "fa82bf579a4a17460f6489843f2d8e2cf8b4f7c8";
|
|
||||||
hash = "sha256-5vE8pLSAezULKb+B8OF4C/8r4C8b1aFNvbkRZ7+ZCXM=";
|
|
||||||
};
|
|
||||||
dependencies = oldAttrs.dependencies ++ [ oldAttrs.passthru.python.pkgs.mastodon-py ];
|
|
||||||
passthru = oldAttrs.passthru // {
|
|
||||||
pythonPath = "${pkgs.python3.pkgs.makePythonPath [pkgs.python3.pkgs.mastodon-py]}:${oldAttrs.passthru.pythonPath}";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
services.froide-govplan = {
|
services.froide-govplan = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.froide-govplan;
|
package = pkgs.verwaltungstracker;
|
||||||
settings = cfg.settings;
|
settings = cfg.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue