mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +01:00
syncthing: Read device id from file by default
This commit is contained in:
parent
a4aaaabbe7
commit
f1e10f728e
7 changed files with 5 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ in
|
|||
doBackups = lib.mkEnableOption "";
|
||||
deviceId = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = "";
|
||||
default = "${self}/hosts/${netCfg.hostName}/keys/syncthing.id" |> lib.readFile |> lib.trim;
|
||||
};
|
||||
syncPort = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue