summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
commite749d673e667f5e404784ca9b61d73c933d0e895 (patch)
treef90e836e27691b8b2ec90478c908cfcdf6b14d5f
parent7f583e3fcad6b095c7f347b0aa52af21c2cc1d43 (diff)
feat(service): install Radicale server
Add Radicale service in order to serve CardDAV.
-rw-r--r--izumi.org14
-rw-r--r--system-configuration.scm14
2 files changed, 26 insertions, 2 deletions
diff --git a/izumi.org b/izumi.org
index 43be347..28799e5 100644
--- a/izumi.org
+++ b/izumi.org
@@ -8,7 +8,7 @@
#+NAME: OPERATING-SYSTEM
#+BEGIN_SRC scheme :tangle system-configuration.scm
- ( add-to-load-path "/home/marek/Dokumenty/secrets" )
+ ( add-to-load-path "/home/marek/Dokumenty/secrets/" )
( use-modules
( marek )
@@ -613,6 +613,18 @@
( ssl-certificate-key
"/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem" ) ) ) ) ) )
( service openssh-service-type )
+ ( service radicale-service-type
+ ( radicale-configuration
+ ( config-file
+ ( mixed-text-file
+ "radicale.conf"
+ "[auth]\n"
+ "type = htpasswd\n"
+ "htpasswd_filename = " radicale-keys "\n"
+ "htpasswd_encryption = plain\n"
+ "\n"
+ "[server]\n"
+ "hosts = localhost:5232\n" ) ) ) )
( simple-service 'base-profile profile-service-type
( append %base-packages
( list
diff --git a/system-configuration.scm b/system-configuration.scm
index 19b35ff..f5f1a7d 100644
--- a/system-configuration.scm
+++ b/system-configuration.scm
@@ -1,4 +1,4 @@
-( add-to-load-path "/home/marek/Dokumenty/secrets" )
+( add-to-load-path "/home/marek/Dokumenty/secrets/" )
( use-modules
( marek )
@@ -603,6 +603,18 @@
( ssl-certificate-key
"/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem" ) ) ) ) ) )
( service openssh-service-type )
+ ( service radicale-service-type
+ ( radicale-configuration
+ ( config-file
+ ( mixed-text-file
+ "radicale.conf"
+ "[auth]\n"
+ "type = htpasswd\n"
+ "htpasswd_filename = " radicale-keys "\n"
+ "htpasswd_encryption = plain\n"
+ "\n"
+ "[server]\n"
+ "hosts = localhost:5232\n" ) ) ) )
( simple-service 'base-profile profile-service-type
( append %base-packages
( list