Jump to content

K3b: Difference between revisions

From Official NixOS Wiki
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. -->

Revision as of 20:33, 17 February 2026

From Wikipedia:

K3b (from KDE Burn Baby Burn) is a CD, DVD and Blu-ray authoring application by KDE for Unix-like computer operating systems. It provides a graphical user interface to perform most CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD/DVD, as well as more advanced tasks such as burning eMoviX CD/DVDs. It can also perform direct disc-to-disc copies.

K3b Wikipedia article

Installation

Add following to your configuration:

programs.k3b.enable = true;

This will effectively install the software, but there are further configuration changes required before any disc burning can take place.

"cdrom" group

To allow K3b and the disc writing tools appropriate permissions to the optical drive, the user(s) need to be in the cdrom group, as well as the optical drive itself.

Adding a user to the "cdrom" group

In your configuration, add cdrom to the extraGroups of the user:

users.users.YourUserHere.extraGroups = [ ... "cdrom" ]

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:

services.udev.extraRules = ''
  # Optical Drive access for K3b
  KERNEL=="sr[0-9]*", GROUP="cdrom", MODE="0660"
'';