summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/common.nix12
-rw-r--r--nixos/kde.nix1
-rw-r--r--nixos/lindy.nix2
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;