diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-01-02 20:38:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 20:38:45 +0100 |
commit | cdf79db19d6ce1f305acebd86dabd58edb42e7c0 (patch) | |
tree | 0f85daca85d0cbae80a6364ae376058f45532533 /nixos/modules/services | |
parent | dad49d0b5ec032d32f7780d9853ea1cc28a91c37 (diff) | |
parent | cc81320a46d8f822da90c84aeb413de3e9b5f4a8 (diff) | |
download | nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar.gz nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar.bz2 nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar.lz nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar.xz nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.tar.zst nixlib-cdf79db19d6ce1f305acebd86dabd58edb42e7c0.zip |
Module system improvements for NixOS as a submodule (#75031)
Module system improvements for NixOS as a submodule
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index b3f2af5b1794..47b10e408c02 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -112,12 +112,12 @@ in { addresses = [ "tcp://192.168.0.10:51820" ]; }; }; - type = types.attrsOf (types.submodule ({ config, ... }: { + type = types.attrsOf (types.submodule ({ name, ... }: { options = { name = mkOption { type = types.str; - default = config._module.args.name; + default = name; description = '' Name of the device ''; @@ -175,7 +175,7 @@ in { devices = [ "bigbox" ]; }; }; - type = types.attrsOf (types.submodule ({ config, ... }: { + type = types.attrsOf (types.submodule ({ name, ... }: { options = { enable = mkOption { @@ -190,7 +190,7 @@ in { path = mkOption { type = types.str; - default = config._module.args.name; + default = name; description = '' The path to the folder which should be shared. ''; @@ -198,7 +198,7 @@ in { id = mkOption { type = types.str; - default = config._module.args.name; + default = name; description = '' The id of the folder. Must be the same on all devices. ''; @@ -206,7 +206,7 @@ in { label = mkOption { type = types.str; - default = config._module.args.name; + default = name; description = '' The label of the folder. ''; |