diff options
author | Alex Auvolat <alex@adnab.me> | 2023-09-15 15:01:13 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-09-15 15:01:13 +0200 |
commit | 6d998c3f8c7960338621bd5317522249ca234d70 (patch) | |
tree | 7033d3ccb6fc502f14c61ce32cebd4cfc5425194 /nixos | |
parent | 510ac3616b4f73c686d5b46d6764f9759db0ae01 (diff) | |
download | user-config-6d998c3f8c7960338621bd5317522249ca234d70.tar.gz user-config-6d998c3f8c7960338621bd5317522249ca234d70.zip |
fix wayland on nvidia; fix keyboard layout on kde wayland
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/common.nix | 12 | ||||
-rw-r--r-- | nixos/kde.nix | 1 | ||||
-rw-r--r-- | nixos/lindy.nix | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/nixos/common.nix b/nixos/common.nix index 41c2f3f..bcecd32 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -75,9 +75,17 @@ in services.xserver.enable = true; # Configure keymap in X11 - services.xserver.layout = "fr"; - services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledXkbLayout} $DISPLAY"; + services.xserver.layout = "fr-custom-lx"; + #services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledXkbLayout} $DISPLAY"; services.xserver.xkbOptions = "caps:escape"; + services.xserver.extraLayouts."fr-custom-lx" = { + description = "French (LX custom azerty)"; + languages = ["fre"]; + symbolsFile = ../xkb/symbols/fr-custom-lx; + compatFile = ../xkb/compat/fr-custom-lx; + typesFile = ../xkb/types/fr-custom-lx; + keycodesFile = ../xkb/keycodes/fr-custom-lx; + }; # Enable CUPS to print documents. services.printing.enable = true; diff --git a/nixos/kde.nix b/nixos/kde.nix index 3703ae9..51fb9af 100644 --- a/nixos/kde.nix +++ b/nixos/kde.nix @@ -1,6 +1,5 @@ { config, pkgs, ... }: { services.xserver.displayManager.sddm.enable = true; - #services.xserver.displayManager.lightdm.enable = true; services.xserver.desktopManager.plasma5.enable = true; environment.systemPackages = with pkgs.libsForQt5; [ diff --git a/nixos/lindy.nix b/nixos/lindy.nix index 6907e82..760b656 100644 --- a/nixos/lindy.nix +++ b/nixos/lindy.nix @@ -83,6 +83,8 @@ Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /root/kogami_key services.cron.systemCronJobs = [ "0 20 * * * root /media/Zonz/lindy/do-backup.sh" ]; # Nvidia graphics + boot.kernelParams = [ "i915.modeset=0" ]; + hardware.nvidia.modesetting.enable = true; services.xserver.videoDrivers = [ "nvidia" ]; hardware.opengl.enable = true; |