feat: set all dbus env vars on sway exec

This commit is contained in:
Jacob Bachmann 2024-01-08 21:14:10 +01:00
parent 443bfc497f
commit b1047d2b54
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
5 changed files with 18 additions and 0 deletions

View file

@ -67,6 +67,7 @@
./power.nix
./packages.nix
./printing.nix
./sddm.nix
./security.nix
./shell.nix
./steam.nix

View file

@ -12,6 +12,7 @@
expect # contains 'unbuffer'
jq # parse json
unzip
libsecret
] ++ lib.optionals (devenv.enable) [
# languages
gcc13

12
modules/sddm.nix Normal file
View file

@ -0,0 +1,12 @@
{ lib, config, ... }: with config.bchmnn; lib.mkIf (gui.enable && lib.elem "i3" gui.flavour) {
/*
services.xserver.displayManager.sddm = {
enable = true;
wayland.enable = true;
};
programs.sway.enable = true;
*/
}

View file

@ -19,6 +19,7 @@
gnome.simple-scan
telegram-desktop
signal-desktop
zathura
] ++ lib.optionals nixosConfig.bchmnn.printing.enable [
system-config-printer
];

View file

@ -79,6 +79,9 @@ in
terminal = "${pkgs.alacritty}/bin/alacritty";
menu = "${pkgs.wofi}/bin/wofi";
startup = with pkgs; [
# TODO activate with systemd prbly requires a graphical.target?
# { command = "${dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
{ command = "${dbus}/bin/dbus-update-activation-environment --all"; }
{ command = "${kanshi}/bin/kanshi"; }
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
{ command = "${blueman}/bin/blueman-applet"; }