Move waybar config into home-manager

This commit is contained in:
Nathan McCarty 2022-05-02 21:47:42 -04:00
parent c1216c6061
commit 8f9f710523
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 16 additions and 12 deletions

View File

@ -67,14 +67,6 @@
# Albert for launcher # Albert for launcher
albert albert
]; ];
extraSessionCommands = ''
# Make qt theming work
export QT_QPA_PLATFORMTHEME="qt5ct"
# Make pipewire present a pulse audio tcp port
pactl load-module module-native-protocol-tcp
# Make firefox use wayland
export XDG_CURRENT_DESKTOP="sway"
'';
}; };
environment.sessionVariables = { environment.sessionVariables = {
@ -107,6 +99,10 @@
base = true; base = true;
gtk = true; gtk = true;
}; };
extraSessionCommands = ''
# Make qt theming work
export QT_QPA_PLATFORMTHEME="qt5ct"
'';
config = { config = {
# Setup gaps # Setup gaps
gaps = { gaps = {
@ -123,10 +119,8 @@
terminal = "alacritty"; terminal = "alacritty";
# Use krunner (from kde) as our launcher # Use krunner (from kde) as our launcher
menu = "albert show"; menu = "albert show";
# Use waybar # Use waybar, but through systemd
bars = [{ bars = [ ];
command = "${unstable.waybar}/bin/waybar";
}];
# Use fira code # Use fira code
fonts = { fonts = {
names = [ "Fira Code Nerd Font" ]; names = [ "Fira Code Nerd Font" ];
@ -192,5 +186,15 @@
} }
]; ];
}; };
# Waybar configuration
programs.waybar = {
enable = true;
package = unstable.waybar;
# Enable systemd configuration
systemd = {
enable = true;
target = "sway-session.target";
};
};
}; };
} }