initial switch to hyprland
This commit is contained in:
parent
1daf9cf44b
commit
6c8c5c43d4
41 changed files with 562 additions and 501 deletions
57
hosts/modules/hyprland.nix
Normal file
57
hosts/modules/hyprland.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.xserver.enable = false;
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
package = pkgs.greetd.tuigreet;
|
||||
settings.default_session = {
|
||||
user = "greeter";
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --cmd ${pkgs.hyprland}/bin/Hyprland";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [xdg-desktop-portal-hyprland xdg-desktop-portal-gtk];
|
||||
config = {
|
||||
common.default = ["gtk"];
|
||||
hyprland.default = ["hyprland" "gtk"];
|
||||
};
|
||||
};
|
||||
systemd.user.services.xdg-desktop-portal-hyprland.unitConfig.ConditionPathExists = "%t/wayland-0";
|
||||
|
||||
security.polkit.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
polkit_gnome
|
||||
candy-icons
|
||||
hu-tao-animated-cursor
|
||||
tokyonight-gtk-theme
|
||||
hyprlock
|
||||
wlogout
|
||||
wl-clipboard
|
||||
xclip
|
||||
wofi
|
||||
hyprshot
|
||||
hypridle
|
||||
polkit_gnome
|
||||
grim
|
||||
slurp
|
||||
swappy
|
||||
imv
|
||||
syshud
|
||||
hyprpaper
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue