From c1939f45d3acd462454fbe57167bf0e406bb7c34 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 2 Aug 2021 06:13:16 -0600 Subject: [PATCH] [NixOS] Disable home-manager keyboard configuration --- nixos/environment.nix | 1 + nixos/home-manager.nix | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/nixos/environment.nix b/nixos/environment.nix index ef633be6..144441e9 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -34,6 +34,7 @@ with lib; homeBinInPath = true; localBinInPath = true; extraInit = '' + export ROFI_SYSTEMD_TERM="alacritty -e" export PATH="${libDir}/bin:$PATH" export PATH="${libDir}/functions:$PATH" ''; diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index d6f338e0..03c3751b 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -3,13 +3,9 @@ enable = true; preferStatusNotifierItems = true; importedVariables = [ "GDK_PIXBUF_ICON_LOADER" ]; - profileExtra = '' - export ROFI_SYSTEMD_TERM="alacritty -e" - . "$HOME/.lib/login.sh" - load_xkb_map.sh - ''; }; + home.keyboard = null; home.emptyActivationPath = false; programs.home-manager.enable = true; @@ -89,6 +85,23 @@ ]; }; + systemd.user.services.setxkbmap = { + Unit = { + Description = "Set up keyboard in X"; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { WantedBy = [ "graphical-session.target" ]; }; + + Service = { + Type = "oneshot"; + RemainAfterExit = true; + ExecStart = "/usr/bin/env load_xkb_map"; + }; + }; + + systemd.user.services.picom = { Unit = { Description = "Picom X11 compositor";