51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [../../../home/extra/mako];
|
|
|
|
xdg.portal = let
|
|
hyprland = config.wayland.windowManager.hyprland.package;
|
|
xdph = pkgs.xdg-desktop-portal-hyprland.override {inherit hyprland;};
|
|
in {
|
|
extraPortals = [xdph];
|
|
configPackages = [hyprland];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
grimblast
|
|
slurp
|
|
hyprpicker
|
|
swaybg
|
|
tofi
|
|
gnome.gnome-calculator
|
|
];
|
|
|
|
environment.variables = {
|
|
BROWSER = "firefox";
|
|
NIXOS_OZONE_WL = 1;
|
|
SDL_VIDEODRIVER = "wayland";
|
|
QT_QPA_PLATFORM = "wayland";
|
|
XDG_SESSION_TYPE = "wayland";
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
};
|
|
|
|
programs.hyprland = {
|
|
enable = true;
|
|
package = pkgs.hyprland;
|
|
xwayland.enable = true;
|
|
extraConfig = ''
|
|
${builtins.readFile ./hyprland.conf}
|
|
'';
|
|
systemd = {
|
|
enable = true;
|
|
extraCommands = [
|
|
"systemctl --user stop graphical-session.target"
|
|
"systemctl --user start hyprland-session.target"
|
|
];
|
|
};
|
|
};
|
|
}
|