!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

888 Members
179 Servers

Load older messages


SenderMessageTime
13 May 2024
@conr:mozilla.org@conr:mozilla.orgyeah, i wanted to stay on stable because it was my first time, but unstable seems like the way to go. my plex version is like 8mo behind.02:57:28
@aidalgol:matrix.org@aidalgol:matrix.orgWith how easy it is to roll back NixOS, tracking unstable is pretty safe.03:00:28
@conr:mozilla.org@conr:mozilla.orgI'll have to try that next time I have a free weekend.03:07:51
@arianvp:matrix.org@arianvp:matrix.org left the room.17:38:48
@fomosapien:matrix.org@fomosapien:matrix.org changed their display name from Triskelion to Triskelion (AFK).21:26:14
14 May 2024
@azahi:azahi.cc@azahi:azahi.cc joined the room.10:26:59
@thatoo:matrix.orgThatooHello, 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:matrix.orgThatoo

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:nurupo.plmewp
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:matrix.orgThatoono, I just read https://wiki.nixos.org/wiki/Keyboard_Layout_Customization12:15:57
@mewp:nurupo.plmewpokay, are you configuring your system using flakes?12:16:48
@thatoo:matrix.orgThatooyes12:18:02
@mewp:nurupo.plmewpall right, then you have a nixosConfiguration with all the settings12:18:34
@thatoo:matrix.orgThatooa configuration.nix file, yes12:18:51
@mewp:nurupo.plmewpthe settings don't have anything to do with flakes, just so you know12:18:54
@mewp:nurupo.plmewpanyway12:18:57
@mewp:nurupo.plmewphttps://search.nixos.org/options?channel=23.11&show=services.xserver.xkb.extraLayouts&from=0&size=50&sort=relevance&type=packages&query=xkb12:18:59
@mewp:nurupo.plmewpthis is probably the option you want to set12:19:12
@mewp:nurupo.plmewpjust add the file to your flake repo, and the path to the file in the relevant place12:19:38
@thatoo:matrix.orgThatoothank you12:37:32
@thatoo:matrix.orgThatoo
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:nurupo.plmewp layout should probably be mine 12:43:49
@mewp:nurupo.plmewpand the path relative (because the flake cannot access anything outside it)12:44:24
@mewp:nurupo.plmewp do a nixos-rebuild switch and then restart the x server 12:45:03
@mewp:nurupo.plmewpthat being said—I don't know anything about these options, I'm just speculating12:45:25
@thatoo:matrix.orgThatoothanks12:49:10
@chrillefkrr:matrix.orgchrillefkrr joined the room.15:43:15
@ajustinlime:matrix.org@ajustinlime:matrix.org joined the room.20:11:33
@ajustinlime:matrix.org@ajustinlime:matrix.org left the room.22:44:55
15 May 2024
@raghavsood:matrix.orgraghavsood joined the room.08:27:41

Show newer messages


Back to Room ListRoom Version: 6