nixcfg/homeManagerModules/desktopEnv/sway/default.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
2024-03-31 08:09:03 -04:00
options = {
2024-04-05 16:43:19 -04:00
desktopEnv.sway.enable = lib.mkEnableOption "Sway with extra apps.";
2024-03-31 08:09:03 -04:00
};
config = lib.mkIf config.desktopEnv.sway.enable {
# Basic apps needed to run a hyprland desktop.
guiApps.waybar.enable = lib.mkDefault true;
guiApps.mako.enable = lib.mkDefault true;
guiApps.fuzzel.enable = lib.mkDefault true;
guiApps.wlogout.enable = lib.mkDefault true;
guiApps.alacritty.enable = lib.mkDefault true;
guiApps.firefox.enable = lib.mkDefault true;
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
brightnessctl
evince
playerctl
xfce.exo
xfce.ristretto
xfce.thunar
xfce.thunar-archive-plugin
xfce.thunar-media-tags-plugin
xfce.thunar-volman
xfce.tumbler
xfce.xfce4-settings
xfce.xfce4-taskmanager
xfce.xfconf
];
services.cliphist.enable = true;
2024-04-08 11:29:07 -04:00
wayland.windowManager.sway.enable = true;
wayland.windowManager.sway.config = {
2024-04-09 13:17:19 -04:00
bars = [{command = "${pkgs.waybar}/bin/waybar";}];
2024-04-08 11:29:07 -04:00
# bars.waybar.command = "${pkgs.waybar}/bin/waybar";
terminal = "${pkgs.alacritty}/bin/alacritty";
menu = "${pkgs.fuzzel}/bin/fuzzel";
modifier = "Mod4";
2024-03-31 08:09:03 -04:00
};
xdg.configFile."xfce4/helpers.rc".text = ''
TerminalEmulator=alacritty
FileManager=thunar
WebBrowser=firefox
'';
xdg.portal = {
enable = true;
2024-04-07 22:16:33 -04:00
configPackages = [pkgs.xdg-desktop-portal-wlr];
extraPortals = [pkgs.xdg-desktop-portal-wlr];
2024-03-31 08:09:03 -04:00
};
};
}