System Gen228 @ 2026-03-29-17:27:44 by jonas@comfy-station

This commit is contained in:
2026-03-29 17:27:45 +02:00
parent a13add9b81
commit c23e6d9621
4 changed files with 50 additions and 24 deletions

View File

@@ -28,6 +28,8 @@
programs.zsh.enable = true;
# hive modules
hive.hyprland.enable = true;
hive.sddm.autologin = "jonas";
hive.kwallet.forUsers = ["jonas"];
hive.virt-manager.enable = true;
hive.virt-manager.forUsers = ["jonas"];

View File

@@ -1,35 +1,21 @@
{
{self, ...}: {
flake.nixosModules.hyprland = {
config,
lib,
pkgs,
...
}: let
cfg = config.hive.displayManager;
cfg = config.hive.hyprland;
in {
options.hive.displayManager = with lib; {
autologin = mkOption {
type = types.nullOr types.str;
default = null;
description = "The autologin username or null for no autologin.";
};
};
config = {
services.xserver.enable = true;
services.xserver = {
xkb.layout = "de";
xkb.variant = "";
xkb.options = "caps:ctrl_modifier";
};
services.displayManager.autoLogin.enable = cfg.autologin != null;
services.displayManager.autoLogin.user = cfg.autologin;
services.libinput.enable = true;
services.dbus.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
options.hive.hyprland = with lib; {
enable = mkEnableOption "Enable Hyprland Wayland compositor";
};
imports = [
self.nixosModules.sddm
];
config = lib.mkIf cfg.enable {
hive.sddm.enable = true;
hive.sddm.wayland = true;
xdg.portal = {
enable = true;

37
modules/desktop/sddm.nix Normal file
View File

@@ -0,0 +1,37 @@
{
flake.nixosModules.sddm = {
config,
lib,
...
}: let
cfg = config.hive.sddm;
in {
options.hive.sddm = with lib; {
enable = mkEnableOption "Enable SDDM display manager";
autologin = mkOption {
type = types.nullOr types.str;
default = null;
description = "The autologin username or null for no autologin.";
};
wayland = mkEnableOption "Enable Wayland session in SDDM";
};
config = lib.mkIf cfg.enable {
services.xserver.enable = true;
services.xserver = {
xkb.layout = "de";
xkb.variant = "";
xkb.options = "caps:ctrl_modifier";
};
services.displayManager.autoLogin.enable = cfg.autologin != null;
services.displayManager.autoLogin.user = cfg.autologin;
services.libinput.enable = true;
services.dbus.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = cfg.wayland;
};
};
};
}

View File

@@ -56,6 +56,7 @@
imports = [
self.nixosModules.bulk-transcode-overlay
self.nixosModules.unstable-overlay
];
config = {