Add boxes and switcheroo modules; enable kdenlive

Register GNOME Boxes and Switcheroo in core packages and enable flags
Turn on kdenlive for Garand‑Desktop and adjust its wrapper for QT
scaling
Extend Docker module with host‑specific profile support and conditional
Nvidia integration
Reformat package definitions (plex, distrobox, winboat) and tidy
nvidia‑driver list
This commit is contained in:
2026-05-23 20:47:49 +02:00
parent 0a3cff7b74
commit ce94f3e813
6 changed files with 43 additions and 8 deletions
+8 -1
View File
@@ -2,12 +2,19 @@
pkgs,
lib,
config,
host,
...
}: {
}: let
inherit (import ../../hosts/${host}/variables.nix) profile;
in {
options.docker.enable = lib.mkEnableOption "Docker";
config.virtualisation.docker = lib.mkIf config.docker.enable {
enable = true;
enableNvidia =
if profile == "nvidia"
then true
else false;
package = pkgs.docker;
daemon.settings.dns = ["9.9.9.11" "149.112.112.11"];
};
+25 -5
View File
@@ -32,10 +32,22 @@
ttySolitaire = tty-solitaire;
gimp = gimp;
eyeOfGnome = eog;
kdenlive = kdePackages.kdenlive;
kdenlive = kdePackages.kdenlive.overrideAttrs (old: {
postInstall =
(old.postInstall or "")
+ ''
wrapProgram $out/bin/kdenlive \
--set QT_SCALE_FACTOR 0.8
'';
});
plex = [
(plex-desktop.override {extraEnv = {QT_QPA_PLATFORM = "xcb";};})
# plex-desktop
(
plex-desktop.override {
extraEnv = {
QT_QPA_PLATFORM = "xcb";
};
}
)
plexamp
];
jellyfin = [
@@ -44,8 +56,14 @@
];
freetube = freetube;
lazydocker = lazydocker;
distrobox = [distrobox pkgs.boxbuddy];
winboat = [winboat freerdp];
distrobox = [
distrobox
pkgs.boxbuddy
];
winboat = [
winboat
freerdp
];
signal = signal-desktop;
pixieditor = pixieditor;
bottles = bottles;
@@ -55,6 +73,8 @@
ferdium = ferdium;
logisim-evolution = logisim-evolution;
notify = notify-client;
boxes = gnome-boxes;
switcheroo = switcheroo;
};
in {
imports = builtins.attrValues (builtins.mapAttrs mkPackage packages);
+3 -1
View File
@@ -13,7 +13,9 @@ in {
config = mkIf cfg.enable {
services.xserver.videoDrivers = ["nvidia"];
environment.systemPackages = with pkgs; [nvidia-docker];
environment.systemPackages = with pkgs; [
nvidia-docker
];
hardware = {
nvidia-container-toolkit.enable = true;
nvidia = {