summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-08-25 18:07:12 +0200
committerGitHub <noreply@github.com>2021-08-25 18:07:12 +0200
commita90373118d7119ff46085c10bbf2c922f6a67aa5 (patch)
tree7dd7c29250d01f1b6f7b81fcb450ffd7facf0420 /nixos/modules/services
parentffaf078cddb04162a91b28107f9e5e5fb8035ac5 (diff)
parentf8df7606683fc9fbce68c8c363d1318dab2ed199 (diff)
downloadnixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar.gz
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar.bz2
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar.lz
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar.xz
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.tar.zst
nixpkgs-a90373118d7119ff46085c10bbf2c922f6a67aa5.zip
Merge pull request #135492 from mweinelt/octoprint
nixos/octoprint: allow access to serial devices
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/octoprint.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/octoprint.nix b/nixos/modules/services/misc/octoprint.nix
index c926d889b37..7129ac69527 100644
--- a/nixos/modules/services/misc/octoprint.nix
+++ b/nixos/modules/services/misc/octoprint.nix
@@ -122,6 +122,9 @@ in
         ExecStart = "${pluginsEnv}/bin/octoprint serve -b ${cfg.stateDir}";
         User = cfg.user;
         Group = cfg.group;
+        SupplementaryGroups = [
+          "dialout"
+        ];
       };
     };