K3b: Difference between revisions

Nika03 (talk | contribs)
WIP - Creation of the article
 
Nika03 (talk | contribs)
WIP - Creation of the article
Line 12: Line 12:


==== Adding a user to the "cdrom" group ====
==== Adding a user to the "cdrom" group ====
In your configuration,
In your configuration, add <code>cdrom</code> to the <code>extraGroups</code> of the user:<syntaxhighlight lang="nix">
users.users.YourUserHere.extraGroups = [ ... "cdrom" ]
</syntaxhighlight>
 
==== Adding the optical drive(s) to the "cdrom" group ====
For the group to have any meaning, the group (and subsequently the users within it) will be given the permissions to access the drive.
 
Add the following to your configuration:<syntaxhighlight lang="nix">
services.udev.extraRules = ''
  # Optical Drive access for K3b
  KERNEL=="sr[0-9]*", GROUP="cdrom", MODE="0660"
'';
</syntaxhighlight><!-- This is a multi-line string, which allows one to add more udev rules later. -->