System Gen229 @ 2026-03-29-17:54:43 by jonas@comfy-station

This commit is contained in:
2026-03-29 17:54:43 +02:00
parent c23e6d9621
commit 7fbc6f180e
5 changed files with 28 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
{self, ...}: {
{
flake.nixosModules.hyprland = {
config,
lib,
@@ -9,13 +9,30 @@
in {
options.hive.hyprland = with lib; {
enable = mkEnableOption "Enable Hyprland Wayland compositor";
autologin = mkOption {
type = types.nullOr types.str;
default = null;
description = "The autologin username or null for no autologin.";
};
};
imports = [
self.nixosModules.sddm
];
config = lib.mkIf cfg.enable {
hive.sddm.enable = true;
hive.sddm.wayland = true;
services.displayManager = {
autoLogin.enable = cfg.autologin != null;
autoLogin.user = cfg.autologin;
sddm = {
enable = true;
wayland.enable = true;
};
};
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
services.libinput.enable = true;
services.dbus.enable = true;
xdg.portal = {
enable = true;
@@ -27,14 +44,7 @@
};
environment.systemPackages = with pkgs; [spaceFM];
services.udisks2.enable = true;
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
programs.hyprlock.enable = true;
security.pam.services.hyprlock = {};
};