diff options
author | Matt Melling <mattmelling@fastmail.com> | 2022-12-12 11:28:43 +0000 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-12-14 18:37:15 +0100 |
commit | e2b79f08bdc9de33df60edc214ddd6d6415caac5 (patch) | |
tree | 1b2beafa352513691b17f21d2fb3839c0b4b99e5 /nixos | |
parent | fee673de8d20b1852b816bf4fed19ae6763d220f (diff) | |
download | nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar.gz nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar.bz2 nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar.lz nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar.xz nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.tar.zst nixlib-e2b79f08bdc9de33df60edc214ddd6d6415caac5.zip |
gpsd: add listenany option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gpsd.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gpsd.nix b/nixos/modules/services/misc/gpsd.nix index 1ab8d1bbe062..ec0a8e1eaa1c 100644 --- a/nixos/modules/services/misc/gpsd.nix +++ b/nixos/modules/services/misc/gpsd.nix @@ -77,6 +77,14 @@ in ''; }; + listenany = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc '' + Listen on all addresses rather than just loopback. + ''; + }; + }; }; @@ -106,6 +114,7 @@ in -S "${toString cfg.port}" \ ${optionalString cfg.readonly "-b"} \ ${optionalString cfg.nowait "-n"} \ + ${optionalString cfg.listenany "-G"} \ "${cfg.device}" ''; }; |