bunch of sliming down
This commit is contained in:
parent
aacf05e59d
commit
8b2a1b1f4f
21 changed files with 992 additions and 810 deletions
|
@ -1,11 +1,28 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
ccfg = import ../config.nix;
|
||||
cfg_path = [
|
||||
ccfg.custom_config_key
|
||||
"general"
|
||||
];
|
||||
cfg = lib.attrsets.getAttrFromPath cfg_path config;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
options =
|
||||
{ }
|
||||
// lib.attrsets.setAttrByPath cfg_path {
|
||||
ttyCapsEscape = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Enable caps for escape key";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.ttyCapsEscape {
|
||||
services.xserver.xkb.options = "caps:escape";
|
||||
console = {
|
||||
earlySetup = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue