.
This commit is contained in:
parent
6ff4ea819a
commit
5fd0249e63
1 changed files with 6 additions and 6 deletions
12
flake.nix
12
flake.nix
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue