nixos/modules: users.(extraUsers|extraGroup->users|group)

This commit is contained in:
Florian Klink
2018-06-30 03:02:58 +02:00
parent 89d5d191b4
commit fff5923686
295 changed files with 512 additions and 512 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ with lib;
Whether to configure system to use gphoto2.
To grant digital camera access to a user, the user must
be part of the camera group:
<code>users.extraUsers.alice.extraGroups = ["camera"];</code>
<code>users.users.alice.extraGroups = ["camera"];</code>
'';
};
};
@@ -25,6 +25,6 @@ with lib;
config = mkIf config.programs.gphoto2.enable {
services.udev.packages = [ pkgs.libgphoto2 ];
environment.systemPackages = [ pkgs.gphoto2 ];
users.extraGroups.camera = {};
users.groups.camera = {};
};
}