nixos-config/configurations/host/materusPC/other/desktop/sddm.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-10-08 11:42:08 +02:00
let
2024-03-29 14:51:39 +01:00
westonSddm = let xcfg = config.services.xserver; in pkgs.writeText "weston.ini"
2023-10-08 11:42:08 +02:00
''
[core]
2024-03-29 14:51:39 +01:00
xwayland=false
2023-10-08 11:42:08 +02:00
shell=fullscreen-shell.so
[keyboard]
2024-03-29 14:51:39 +01:00
keymap_model = ${builtins.toString xcfg.xkb.model};
keymap_layout = ${builtins.toString xcfg.xkb.layout};
keymap_variant = ${builtins.toString xcfg.xkb.variant};
keymap_options = ${builtins.toString xcfg.xkb.options};
[libinput]
enable-tap = ${builtins.toString xcfg.libinput.mouse.tapping};
left-handed = ${builtins.toString xcfg.libinput.mouse.leftHanded};
2023-10-08 11:42:08 +02:00
[output]
name=DP-3
mode=1920x1080@240
[output]
name=DP-2
mode=off
[output]
name=HDMI-A-3
mode=off
2024-03-29 14:51:39 +01:00
'';
2023-10-08 11:42:08 +02:00
in
{
2024-04-19 18:27:59 +02:00
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.displayManager.sddm.wayland.compositor = lib.mkForce "weston";
services.displayManager.sddm.wayland.compositorCommand = lib.concatStringsSep " " [
2024-03-29 14:51:39 +01:00
"${lib.getExe pkgs.weston}"
"--shell=kiosk"
"-c ${westonSddm}"
];
2024-04-19 18:27:59 +02:00
services.displayManager.sddm.settings = {
2023-10-08 11:42:08 +02:00
General = {
2024-03-11 16:19:31 +01:00
InputMethod = "";
2023-10-08 11:42:08 +02:00
};
Theme = {
CursorTheme = "breeze_cursors";
CursorSize = "24";
};
};
2024-10-18 17:32:47 +02:00
}