This commit is contained in:
cnst
2024-07-01 19:11:37 +02:00
parent e0e77ed9b0
commit ffb53bf615
6 changed files with 22 additions and 8 deletions

42
home/core/gui/default.nix Normal file
View File

@@ -0,0 +1,42 @@
{
lib,
config,
pkgs,
...
}: {
imports = [
../../extra/mako
./rofi.nix
];
xdg.portal = let
hyprland = config.wayland.windowManager.hyprland.package;
xdph = pkgs.xdg-desktop-portal-hyprland.override {inherit hyprland;};
in {
extraPortals = [xdph];
configPackages = [hyprland];
};
home.packages = with pkgs; [
grimblast
slurp
hyprpicker
swaybg
tofi
gnome.gnome-calculator
];
wayland.windowManager.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"
];
};
};
}