mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nix!: refactored nixosModules
This commit is contained in:
parent
3753271d60
commit
18f7c70bc9
17 changed files with 25 additions and 32 deletions
22
nix/nixosModules/extra/layouts/default.nix
Normal file
22
nix/nixosModules/extra/layouts/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
services.xserver.xkb = {
|
||||
layout = lib.mkDefault "myDvorak";
|
||||
# TODO: figure out how to implement this conditionally
|
||||
# options = "caps:swapescape";
|
||||
extraLayouts = {
|
||||
"myDvorak" = {
|
||||
languages = [ "us" ];
|
||||
symbolsFile = ./dvorak.xkb;
|
||||
description = "Leana's dvorak";
|
||||
};
|
||||
"myDvorakFrench" = {
|
||||
languages = [ "fr" ];
|
||||
symbolsFile = ./dvorak-french.xkb;
|
||||
description = "Leana's dvorak but baguette";
|
||||
};
|
||||
};
|
||||
};
|
||||
console.useXkbConfig = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue