From bef137b96778061ccb350c650d05aeeeb9d0a219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 12 Sep 2023 23:18:46 +0300 Subject: [PATCH] wsdd: specify existing hostname --- hosts/vno1-rp3b/configuration.nix | 1 + modules/services/jakstpub/default.nix | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/vno1-rp3b/configuration.nix b/hosts/vno1-rp3b/configuration.nix index 9bc49ed..b8d18c3 100644 --- a/hosts/vno1-rp3b/configuration.nix +++ b/hosts/vno1-rp3b/configuration.nix @@ -86,6 +86,7 @@ dataDir = "/data/shared"; requires = ["data-shared.mount"]; uidgid = myData.uidgid.jakstpub; + hostname = "hdd.jakstys.lt"; }; }; }; diff --git a/modules/services/jakstpub/default.nix b/modules/services/jakstpub/default.nix index 70c9b24..efe51b1 100644 --- a/modules/services/jakstpub/default.nix +++ b/modules/services/jakstpub/default.nix @@ -11,6 +11,7 @@ # RequiresMountsFor is used by upstream, hacking with the unit requires = lib.mkOption {type = listOf str;}; uidgid = lib.mkOption {type = int;}; + hostname = lib.mkOption {type = str;}; }; config = with config.mj.services.jakstpub; @@ -42,7 +43,10 @@ }; }; - services.samba-wsdd.enable = true; + services.samba-wsdd = { + enable = true; + hostname = hostname; + }; users.users.jakstpub = { description = "Jakstys Public";