| 14 May 2024 |
Thatoo | Hello,
How can I add this keyboard layout to my configuration.nix file while I'm using flakes : https://github.com/Nuclear-Squid/ergol/raw/main/0_7_0/ergol.xkb_custom ? | 12:09:15 |
Thatoo | If I just add
let
compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
${pkgs.xorg.xkbcomp}/bin/xkbcomp ${/path/to/file//ergol.xkb} $out
'';
in
services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
on top of my configuration.nix file, I get an error
| 12:10:01 |
mewp | In reply to @thatoo:matrix.org Hello, How can I add this keyboard layout to my configuration.nix file while I'm using flakes : https://github.com/Nuclear-Squid/ergol/raw/main/0_7_0/ergol.xkb_custom ? do you know how to do that without flakes? | 12:15:15 |
Thatoo | no, I just read https://wiki.nixos.org/wiki/Keyboard_Layout_Customization | 12:15:57 |
mewp | okay, are you configuring your system using flakes? | 12:16:48 |
Thatoo | yes | 12:18:02 |
mewp | all right, then you have a nixosConfiguration with all the settings | 12:18:34 |
Thatoo | a configuration.nix file, yes | 12:18:51 |
mewp | the settings don't have anything to do with flakes, just so you know | 12:18:54 |
mewp | anyway | 12:18:57 |
mewp | https://search.nixos.org/options?channel=23.11&show=services.xserver.xkb.extraLayouts&from=0&size=50&sort=relevance&type=packages&query=xkb | 12:18:59 |
mewp | this is probably the option you want to set | 12:19:12 |
mewp | just add the file to your flake repo, and the path to the file in the relevant place | 12:19:38 |
Thatoo | thank you | 12:37:32 |
Thatoo | services.xserver = {
layout = "fr";
xkbVariant = "";
xkb.extraLayouts = {
mine = {
description = "ergol xkb layout.";
languages = [ "fr-ergol" ];
symbolsFile = /path/to/file/ergol.xkb_custom;
};
};
};
should work? Do I need to reboot or logout/login?
| 12:42:04 |
mewp | layout should probably be mine | 12:43:49 |
mewp | and the path relative (because the flake cannot access anything outside it) | 12:44:24 |
mewp | do a nixos-rebuild switch and then restart the x server | 12:45:03 |
mewp | that being said—I don't know anything about these options, I'm just speculating | 12:45:25 |
Thatoo | thanks | 12:49:10 |
| chrillefkrr joined the room. | 15:43:15 |
| @ajustinlime:matrix.org joined the room. | 20:11:33 |
| @ajustinlime:matrix.org left the room. | 22:44:55 |
| 15 May 2024 |
| raghavsood joined the room. | 08:27:41 |
| raghavsood set a profile picture. | 08:38:26 |
Thatoo | mewpjust to let you know that I'm typing with this ergol.xkb_custom keaybord layout. It has work exactly as you said. After a logout/login, I could choose and use it.
Thank you.
| 14:44:56 |
| @fomosapien:matrix.org changed their display name from Triskelion (AFK) to Triskelion. | 14:45:25 |
mewp | happy I could help | 14:46:12 |
| 17 May 2024 |
woobilicious | how would I do the equivent of nix build 'nixpkg/<commit>#pkg but on a local clone? ./<commit>#pkg obviously doens't work. | 09:03:11 |
woobilicious | even better if I could do HEAD~1 | 09:05:48 |