1
0
mirror of https://github.com/kmein/niveum synced 2026-03-17 10:41:06 +01:00

feat: move ./modules to flake outputs

This commit is contained in:
2023-02-24 23:41:01 +01:00
parent c9af430f31
commit b1743f031c
18 changed files with 35 additions and 379 deletions

View File

@@ -29,7 +29,6 @@ in {
../../configs/spacetime.nix
../../configs/sshd.nix
../../configs/telegram-bots
../../modules/passport.nix
];
services.restic.backups.niveum = {

View File

@@ -1,38 +0,0 @@
{
config,
pkgs,
lib,
...
}: let
moodle-dl-package = pkgs.moodle-dl.overrideAttrs (old:
old
// {
patches = [<niveum/packages/moodle-dl/telegram-format.patch>];
});
in {
imports = [<niveum/modules/moodle-dl.nix>];
niveum.passport.services = [
{
title = "MoodleDL";
description = "notifies about changes on Moodle.";
}
];
services.moodle-dl = {
enable = true;
startAt = "hourly";
package = moodle-dl-package;
notifyOnly = true;
settings = {
telegram = {
token = lib.strings.fileContents <system-secrets/telegram/moodle-dl.token>;
chat_id = "311425510";
send_error_msg = false;
};
token = lib.strings.fileContents <system-secrets/moodle-dl/faye.token>;
moodle_domain = "moodle.hu-berlin.de";
moodle_path = "/";
};
};
}

View File

@@ -15,8 +15,6 @@
sha256 = "1n2m53kjg2vj9dbr70b9jrsbqwdfrcb48l4wswn21549fi24g6dx";
};
in {
imports = [../../modules/htgen.nix];
services.htgen.tarot = {
port = tarotPort;
script = ''. ${pkgs.writers.writeDash "tarot" ''

View File

@@ -50,8 +50,6 @@ in {
];
};
nix.nixPath = ["/var/src"];
services.logind = {
lidSwitch = "ignore";
lidSwitchDocked = "ignore";

View File

@@ -10,8 +10,6 @@
patches = [../../packages/moodle-dl/telegram-format.patch];
});
in {
imports = [../../modules/moodle-dl.nix];
age.secrets = {
moodle-dl-tokens = {
file = ../../secrets/zaatar-moodle-dl-tokens.json.age;