summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-06-01 18:49:52 +0200
committerSilas Schöffel <sils@sils.li>2024-06-01 18:49:52 +0200
commit123bc19dfc72d428f59995e6da8923ba114cc898 (patch)
tree560389c2d2a9ea88a350ba76ea261b7d50193737
parenthm: delete eww (diff)
downloadnix-config-123bc19dfc72d428f59995e6da8923ba114cc898.tar.gz
nix-config-123bc19dfc72d428f59995e6da8923ba114cc898.zip
etesync-dav: init module
-rw-r--r--hm/default.nix2
-rw-r--r--hm/etesync-dav/default.nix8
-rw-r--r--modules/hm/sils/default.nix1
-rw-r--r--modules/hm/sils/etesync-dav.nix17
4 files changed, 19 insertions, 9 deletions
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 = {
+      #};
+    };
+  };
+}