all repos — archive/nixos-configuration @ 092fb00879d9593e41acf085141ebe2574421da4

Superseded by nixfiles

Move some startup programs to sessionCommands

Alan Pearce
commit

092fb00879d9593e41acf085141ebe2574421da4

parent

b1d95be08bebcb8c1cdf3133b812c861247f8f1d

M modules/hardware/colemak.nixmodules/hardware/colemak.nix
@@ -13,5 +13,9 @@ services.xserver = {
layout = "us,us"; xkbVariant = "colemak,"; xkbOptions = "grp:shifts_toggle,altwin:prtsc_rwin"; + displayManager.sessionCommands = '' + # Needed for pass/rofi-pass autotype + ${pkgs.xlibs.setxkbmap}/bin/setxkbmap us -variant colemak + ''; }; }
M modules/hardware/laptop.nixmodules/hardware/laptop.nix
@@ -42,6 +42,9 @@ enable = lib.mkDefault true;
naturalScrolling = true; disableWhileTyping = true; }; + displayManager.sessionCommands = '' + ${pkgs.autorandr}/bin/autorandr --change --force + ''; }; systemd.services.nixos-upgrade.unitConfig.ConditionACPower = true;
M modules/programs/window-manager.nixmodules/programs/window-manager.nix
@@ -8,6 +8,7 @@ };
sessionCommands = '' ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c' & ${pkgs.hsetroot}/bin/hsetroot -solid '#4d4d4c' + ${pkgs.networkmanagerapplet}/bin/nm-applet & ''; }; xautolock = {