[NixOS] Disable home-manager keyboard configuration

This commit is contained in:
Ivan Malison 2021-08-02 06:13:16 -06:00
parent 1ef2ad407e
commit c1939f45d3
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 19 additions and 5 deletions

View File

@ -34,6 +34,7 @@ with lib;
homeBinInPath = true; homeBinInPath = true;
localBinInPath = true; localBinInPath = true;
extraInit = '' extraInit = ''
export ROFI_SYSTEMD_TERM="alacritty -e"
export PATH="${libDir}/bin:$PATH" export PATH="${libDir}/bin:$PATH"
export PATH="${libDir}/functions:$PATH" export PATH="${libDir}/functions:$PATH"
''; '';

View File

@ -3,13 +3,9 @@
enable = true; enable = true;
preferStatusNotifierItems = true; preferStatusNotifierItems = true;
importedVariables = [ "GDK_PIXBUF_ICON_LOADER" ]; 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; home.emptyActivationPath = false;
programs.home-manager.enable = true; 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 = { systemd.user.services.picom = {
Unit = { Unit = {
Description = "Picom X11 compositor"; Description = "Picom X11 compositor";