Add lib.mkDefault for non configurable defaults

This commit is contained in:
DashieTM 2025-05-09 12:02:51 +02:00
parent 4d5638baca
commit 0c24809f25
8 changed files with 82 additions and 70 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: let
{
mkDashDefault,
pkgs,
...
}: let
layout = pkgs.writeText "dashie" ''
xkb_symbols "dashie"
{
@ -10,7 +14,7 @@
};
'';
in {
environment.systemPackages = [pkgs.xorg.xkbcomp];
environment.systemPackages = mkDashDefault [pkgs.xorg.xkbcomp];
services.xserver.xkb.extraLayouts.dashie = {
description = "US layout with 'umlaut'";
languages = ["eng"];