diff options
author | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-10-17 17:58:50 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-10-17 17:58:50 +0200 |
commit | ec2d857194a8c573cdcb76a59eada6a8e150ed19 (patch) | |
tree | 68e4d9d75461eed0cdf3bc8170d1749f924f8122 /machines | |
parent | 63df6f75b532931a1353884a883fb8425455bc26 (diff) | |
download | dots-ec2d857194a8c573cdcb76a59eada6a8e150ed19.tar.gz dots-ec2d857194a8c573cdcb76a59eada6a8e150ed19.zip |
Setup obsidian-livesync
Diffstat (limited to 'machines')
-rw-r--r-- | machines/srv3/configuration.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/machines/srv3/configuration.nix b/machines/srv3/configuration.nix index 197aec6..d1fb4e2 100644 --- a/machines/srv3/configuration.nix +++ b/machines/srv3/configuration.nix @@ -4,6 +4,8 @@ let www = "/srv/www"; + domain = "niedzwiedzinski.cyou"; + in { imports = @@ -16,8 +18,8 @@ in services.obsidian-livesync = { enable = true; - domain = "obsidian.niedzwiedzinski.cyou"; - couchdb.adminPass = "123"; + domain = "obsidian.${domain}"; + adminsFile = "/etc/couchdb.ini"; }; boot.loader.grub.enable = true; @@ -36,7 +38,7 @@ in }; hostName = "srv3"; extraHosts = '' - 192.168.1.136 srv3.niedzwiedzinski.cyou git.niedzwiedzinski.cyou tmp.niedzwiedzinski.cyou zhr.niedzwiedzinski.cyou help.niedzwiedzinski.cyou niedzwiedzinski.cyou pics.niedzwiedzinski.cyou fresh.niedzwiedzinski.cyou + 192.168.1.136 srv3.niedzwiedzinski.cyou git.niedzwiedzinski.cyou tmp.niedzwiedzinski.cyou zhr.niedzwiedzinski.cyou help.niedzwiedzinski.cyou niedzwiedzinski.cyou pics.niedzwiedzinski.cyou fresh.niedzwiedzinski.cyou obsidian.${domain} 192.168.1.144 srv2.niedzwiedzinski.cyou '' + lib.readFile ( pkgs.fetchurl { url = "https://raw.githubusercontent.com/StevenBlack/hosts/d2be343994aacdec74865ff8d159cf6e46359adf/alternates/fakenews-gambling-porn/hosts"; |