wsdd: specify existing hostname

This commit is contained in:
Motiejus Jakštys 2023-09-12 23:18:46 +03:00
parent 53ce3910aa
commit bef137b967
2 changed files with 6 additions and 1 deletions

View File

@ -86,6 +86,7 @@
dataDir = "/data/shared"; dataDir = "/data/shared";
requires = ["data-shared.mount"]; requires = ["data-shared.mount"];
uidgid = myData.uidgid.jakstpub; uidgid = myData.uidgid.jakstpub;
hostname = "hdd.jakstys.lt";
}; };
}; };
}; };

View File

@ -11,6 +11,7 @@
# RequiresMountsFor is used by upstream, hacking with the unit # RequiresMountsFor is used by upstream, hacking with the unit
requires = lib.mkOption {type = listOf str;}; requires = lib.mkOption {type = listOf str;};
uidgid = lib.mkOption {type = int;}; uidgid = lib.mkOption {type = int;};
hostname = lib.mkOption {type = str;};
}; };
config = with config.mj.services.jakstpub; 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 = { users.users.jakstpub = {
description = "Jakstys Public"; description = "Jakstys Public";