System Gen147 @ 2026-03-29-18:04:00 by jonas@monolith

This commit is contained in:
2026-03-29 18:04:00 +02:00
parent 7fbc6f180e
commit 0240531a02
2 changed files with 35 additions and 17 deletions

View File

@@ -49,6 +49,8 @@
];
# hive modules
hive.plasma.enable = true;
hive.plasma.autologin = "jonas";
hive.kwallet.enable = true;
hive.kwallet.forUsers = ["jonas"];
hive.virt-manager.enable = true;

View File

@@ -1,15 +1,30 @@
{
flake.nixosModules.plasma = {pkgs, ...}: {
services.xserver.enable = true;
services.xserver = {
xkb.layout = "de";
xkb.variant = "";
xkb.options = "caps:ctrl_modifier";
flake.nixosModules.plasma = {
config,
pkgs,
lib,
...
}: 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 = {
};
config = lib.mkIf cfg.enable {
services.displayManager = {
autoLogin.enable = cfg.autologin != null;
autoLogin.user = cfg.autologin;
sddm = {
enable = true;
wayland.enable = true;
};
};
services.desktopManager.plasma6.enable = true;
xdg.portal = {
enable = true;
@@ -19,4 +34,5 @@
];
};
};
};
}