Move waybar config into home-manager
This commit is contained in:
parent
c1216c6061
commit
8f9f710523
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue