Files
Nomarchy/modules/system/sddm.nix
Bernardo Magri 9d36110123 fix(vm): fix Plymouth, SDDM, and autologin for VM testing
- Add virtio_gpu to initrd.kernelModules for early graphics support in VMs.
- Add 'render' group to VM users to ensure GPU acceleration.
- Move autologin defaults to sddm.nix to ensure they are consistently applied.
- Ensure SDDM theme has better session detection for uwsm.
2026-04-05 11:20:24 +01:00

32 lines
710 B
Nix

{ config, pkgs, lib, ... }:
let
nomarchy-sddm-theme = pkgs.stdenv.mkDerivation {
pname = "nomarchy-sddm-theme";
version = "1.0";
src = ../../assets/sddm/nomarchy;
installPhase = ''
mkdir -p $out/share/sddm/themes/nomarchy
cp -r * $out/share/sddm/themes/nomarchy/
'';
};
in
{
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "nomarchy";
};
services.displayManager.autoLogin = {
enable = lib.mkDefault true;
user = lib.mkDefault "nomarchy";
};
environment.systemPackages = [ nomarchy-sddm-theme ];
# Enable Hyprland system-level dependencies
programs.hyprland.enable = true;
programs.uwsm.enable = true;
}