From c4bf11b1c49eec717cdeae72f4d1598be997ed2c Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 31 May 2024 08:08:56 -0600 Subject: [PATCH] configs/colemak: remove isUnstable check --- configs/colemak.nix | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/configs/colemak.nix b/configs/colemak.nix index b15544f..2dd1a98 100644 --- a/configs/colemak.nix +++ b/configs/colemak.nix @@ -1,22 +1,7 @@ { config , lib -, isUnstable , ... }: -let - unstableVariant = - if isUnstable then { - xkb = { - options = "ctrl:swapcaps,compose:ralt"; - variant = "colemak"; - layout = "us"; - }; - } else { - xkbVariant = "colemak"; - xkbOptions = "ctrl:swapcaps,compose:ralt"; - layout = "us"; - }; -in with lib; { options = { colemak = { @@ -32,6 +17,11 @@ with lib; { config = mkIf config.colemak.enable { console = { keyMap = "colemak"; }; services.xserver = { + xkb = { + options = "ctrl:swapcaps,compose:ralt"; + variant = "colemak"; + layout = "us"; + }; inputClassSections = [ '' Identifier "precursor" @@ -50,6 +40,6 @@ with lib; { Option "XkbVariant" "basic" '' ]; - } // unstableVariant; + }; }; }