From 123bc19dfc72d428f59995e6da8923ba114cc898 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sat, 1 Jun 2024 18:49:52 +0200 Subject: etesync-dav: init module --- hm/default.nix | 2 +- hm/etesync-dav/default.nix | 8 -------- modules/hm/sils/default.nix | 1 + modules/hm/sils/etesync-dav.nix | 17 +++++++++++++++++ 4 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 hm/etesync-dav/default.nix create mode 100644 modules/hm/sils/etesync-dav.nix diff --git a/hm/default.nix b/hm/default.nix index a654655..f48e747 100644 --- a/hm/default.nix +++ b/hm/default.nix @@ -1,7 +1,6 @@ {nixvim, ...}: { imports = [ ../modules/hm - ./etesync-dav ./flameshot ./foot ./git @@ -34,6 +33,7 @@ sils = { bat.enable = true; direnv.enable = true; + etesync-dav.enable = true; firefox.enable = true; jameica.enable = true; kdeconnect.enable = true; diff --git a/hm/etesync-dav/default.nix b/hm/etesync-dav/default.nix deleted file mode 100644 index d1c9850..0000000 --- a/hm/etesync-dav/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{...}: { - services.etesync-dav = { - enable = true; - serverUrl = "https://etebase.vhack.eu"; - #settings = { - #}; - }; -} diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index 3e296e2..fba63bc 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -2,6 +2,7 @@ imports = [ ./bat.nix ./direnv.nix + ./etesync-dav.nix ./firefox ./jameica.nix ./kdeconnect.nix diff --git a/modules/hm/sils/etesync-dav.nix b/modules/hm/sils/etesync-dav.nix new file mode 100644 index 0000000..f524928 --- /dev/null +++ b/modules/hm/sils/etesync-dav.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.etesync-dav; +in { + options.sils.etesync-dav.enable = lib.mkEnableOption "etesync-dav"; + config = lib.mkIf cfg.enable { + services.etesync-dav = { + enable = true; + serverUrl = "https://etebase.vhack.eu"; + #settings = { + #}; + }; + }; +} -- cgit 1.4.1