System Gen147 @ 2026-03-29-18:04:00 by jonas@monolith
This commit is contained in:
@@ -49,6 +49,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# hive modules
|
# hive modules
|
||||||
|
hive.plasma.enable = true;
|
||||||
|
hive.plasma.autologin = "jonas";
|
||||||
hive.kwallet.enable = true;
|
hive.kwallet.enable = true;
|
||||||
hive.kwallet.forUsers = ["jonas"];
|
hive.kwallet.forUsers = ["jonas"];
|
||||||
hive.virt-manager.enable = true;
|
hive.virt-manager.enable = true;
|
||||||
|
|||||||
@@ -1,22 +1,38 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.plasma = {pkgs, ...}: {
|
flake.nixosModules.plasma = {
|
||||||
services.xserver.enable = true;
|
config,
|
||||||
services.xserver = {
|
pkgs,
|
||||||
xkb.layout = "de";
|
lib,
|
||||||
xkb.variant = "";
|
...
|
||||||
xkb.options = "caps:ctrl_modifier";
|
}: let
|
||||||
|
cfg = config.hive.plasma;
|
||||||
|
in {
|
||||||
|
options.hive.plasma = {
|
||||||
|
enable = lib.mkEnableOption "Enable Plasma 6 desktop environment";
|
||||||
|
autologin = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.str;
|
||||||
|
default = null;
|
||||||
|
description = "The autologin username or null for no autologin.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
config = lib.mkIf cfg.enable {
|
||||||
wayland.enable = true;
|
services.displayManager = {
|
||||||
};
|
autoLogin.enable = cfg.autologin != null;
|
||||||
services.desktopManager.plasma6.enable = true;
|
autoLogin.user = cfg.autologin;
|
||||||
xdg.portal = {
|
sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs; [
|
wayland.enable = true;
|
||||||
kdePackages.xdg-desktop-portal-kde
|
};
|
||||||
xdg-desktop-portal-gtk
|
};
|
||||||
];
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
kdePackages.xdg-desktop-portal-kde
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user