Add kb variant

This commit is contained in:
muon 2025-12-25 15:44:14 +00:00
parent 600496e419
commit 5bdf9e3a2c

View file

@ -1,5 +1,9 @@
{ pkgs, lib, config, ... }: {
let pkgs,
lib,
config,
...
}: let
monitorModule = lib.types.submodule { monitorModule = lib.types.submodule {
options = { options = {
name = lib.mkOption { name = lib.mkOption {
@ -18,7 +22,7 @@ in {
xorg.enable = lib.mkEnableOption "enables xorg"; xorg.enable = lib.mkEnableOption "enables xorg";
monitors = lib.mkOption { monitors = lib.mkOption {
type = lib.types.attrsOf monitorModule; type = lib.types.attrsOf monitorModule;
default = { }; default = {};
}; };
}; };
@ -28,20 +32,23 @@ in {
"multi-user.target" "multi-user.target"
"network-online.target" "network-online.target"
]; ];
in
lib.mkIf config.mods.xorg.enable {
services.xserver.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "altgr-intl";
options = "caps:escape";
};
services.xserver.dpi = 96;
in lib.mkIf config.mods.xorg.enable { # services.xserver.displayManager.gdm.enable = true;
services.xserver.enable = true; services.displayManager.sddm.enable = true;
services.xserver.xkb.layout = "us"; services.displayManager.sddm.enableHidpi = false;
services.xserver.xkb.options = "caps:escape"; services.displayManager.autoLogin.enable = true;
services.xserver.dpi = 96; services.displayManager.autoLogin.user = config.mods.user.name;
# services.xserver.displayManager.gdm.enable = true; systemd.services.display-manager.wants = startupTargets;
services.displayManager.sddm.enable = true; systemd.services.display-manager.after = startupTargets;
services.displayManager.sddm.enableHidpi = false; };
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = config.mods.user.name;
systemd.services.display-manager.wants = startupTargets;
systemd.services.display-manager.after = startupTargets;
};
} }