This commit is contained in:
Stuce 2025-11-16 11:59:26 +01:00
parent 6ff4ea819a
commit 5fd0249e63

View file

@ -33,10 +33,10 @@
maintainers = with pkgs.lib.maintainers; [ stuce-bot ]; maintainers = with pkgs.lib.maintainers; [ stuce-bot ];
}; };
}; };
nixosModules.calDavToCsv = { config, lib, ... }: nixosModules.default = { config, lib, ... }:
let cfg = config.services.calDavToCsv; let cfg = config.services.deafault;
in { in {
options.calDavtoCSV = { options.default = {
enable = lib.mkOption { enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
@ -83,11 +83,11 @@
# "file where we need to look for password to connect, needs to be readeable by the service user"; # "file where we need to look for password to connect, needs to be readeable by the service user";
# }; # };
# }; # };
config = lib.mkIf config.calDavToCsv.enable { config = lib.mkIf config.default.enable {
environment.etc."config.ini".text = '' environment.etc."config.ini".text = ''
${lib.toIni config.calDavToCsv.config} ${lib.toIni config.default.config}
''; '';
systemd.services.calDavToCsv = { systemd.services.default = {
description = "calDAV to CSV Service"; description = "calDAV to CSV Service";
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {