feat(sddm): init module

This commit is contained in:
2025-09-14 01:12:04 -06:00
parent f12308326e
commit 3cf3c8e81a
2 changed files with 18 additions and 20 deletions

View File

@@ -21,6 +21,7 @@
stylix.enable = true;
qemu.enable = true;
flatpak.enable = true;
sddm.enable = true;
steam = {
enable = true;
@@ -52,17 +53,6 @@
};
};
# services.xserver.desktopManager.plasma5.enable = true;
# Disable systemd-sleep. Let KDE or whatever dim the screen without
# suspending the computer.
# systemd.sleep.extraConfig = ''
# AllowSuspend=no
# AllowHibernation=no
# AllowHybridSleep=no
# AllowSuspendThenHibernate=no
# '';
# Make pressing the power button suspend the system.
services.logind.settings.Login = {
HandlePowerKey = "suspend";
@@ -94,12 +84,6 @@
};
};
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
autoNumlock = true;
};
services.libinput = {
enable = true;
# Disable mouse acceleration.
@@ -122,8 +106,6 @@
# services.pulseaudio.package = pkgs.pulseaudioFull;
services.flatpak.enable = true;
# Usually we try to delegate declarations of globally-available packages to
# separate modules. These are some exceptional essentials.
environment.systemPackages = [

16
modules/nixos/sddm.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.sddm;
in {
options.sydnix.sddm = {
enable = lib.mkEnableOption "SDDM";
};
config = lib.mkIf cfg.enable {
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
autoNumlock = true;
};
};
}