commit
213febe39a
2 changed files with 53 additions and 0 deletions
|
@ -172,6 +172,7 @@
|
||||||
./programs/java.nix
|
./programs/java.nix
|
||||||
./programs/k40-whisperer.nix
|
./programs/k40-whisperer.nix
|
||||||
./programs/kclock.nix
|
./programs/kclock.nix
|
||||||
|
./programs/k3b.nix
|
||||||
./programs/kdeconnect.nix
|
./programs/kdeconnect.nix
|
||||||
./programs/kbdlight.nix
|
./programs/kbdlight.nix
|
||||||
./programs/less.nix
|
./programs/less.nix
|
||||||
|
|
52
nixos/modules/programs/k3b.nix
Normal file
52
nixos/modules/programs/k3b.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
# interface
|
||||||
|
options.programs.k3b = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable k3b, the KDE disk burning application.
|
||||||
|
|
||||||
|
Additionally to installing <package>k3b</package> enabling this will
|
||||||
|
add <literal>setuid</literal> wrappers in <literal>/run/wrappers/bin</literal>
|
||||||
|
for both <package>cdrdao</package> and <package>cdrecord</package>. On first
|
||||||
|
run you must manually configure the path of <package>cdrdae</package> and
|
||||||
|
<package>cdrecord</package> to correspond to the appropriate paths under
|
||||||
|
<literal>/run/wrappers/bin</literal> in the "Setup External Programs" menu.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# implementation
|
||||||
|
config = mkIf config.programs.k3b.enable {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
k3b
|
||||||
|
dvdplusrwtools
|
||||||
|
cdrdao
|
||||||
|
cdrkit
|
||||||
|
];
|
||||||
|
|
||||||
|
security.wrappers = {
|
||||||
|
cdrdao = {
|
||||||
|
setuid = true;
|
||||||
|
owner = "root";
|
||||||
|
group = "cdrom";
|
||||||
|
permissions = "u+wrx,g+x";
|
||||||
|
source = "${pkgs.cdrdao}/bin/cdrdao";
|
||||||
|
};
|
||||||
|
cdrecord = {
|
||||||
|
setuid = true;
|
||||||
|
owner = "root";
|
||||||
|
group = "cdrom";
|
||||||
|
permissions = "u+wrx,g+x";
|
||||||
|
source = "${pkgs.cdrkit}/bin/cdrecord";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue