mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add kb variant
This commit is contained in:
parent
600496e419
commit
5bdf9e3a2c
1 changed files with 24 additions and 17 deletions
|
|
@ -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,11 +32,14 @@ in {
|
||||||
"multi-user.target"
|
"multi-user.target"
|
||||||
"network-online.target"
|
"network-online.target"
|
||||||
];
|
];
|
||||||
|
in
|
||||||
in lib.mkIf config.mods.xorg.enable {
|
lib.mkIf config.mods.xorg.enable {
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.xkb.layout = "us";
|
services.xserver.xkb = {
|
||||||
services.xserver.xkb.options = "caps:escape";
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
options = "caps:escape";
|
||||||
|
};
|
||||||
services.xserver.dpi = 96;
|
services.xserver.dpi = 96;
|
||||||
|
|
||||||
# services.xserver.displayManager.gdm.enable = true;
|
# services.xserver.displayManager.gdm.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue