From 79b83161d4f90f10a76239e3dcbb4e8e086b72df Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 8 Nov 2024 09:17:29 +0100 Subject: Configure hyprland --- compositor.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/compositor.nix b/compositor.nix index d016236..716caef 100644 --- a/compositor.nix +++ b/compositor.nix @@ -1,26 +1,23 @@ # https://wiki.nixos.org/wiki/Sway { pkgs, ... }: { + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; + programs.hyprlock.enable = true; + environment.systemPackages = with pkgs; [ - grim - slurp - wl-clipboard - mako - wlr-randr + kitty # Required by Hyprland ]; services.gnome.gnome-keyring.enable = true; - programs.sway = { - enable = true; - wrapperFeatures.gtk = true; - }; - services.greetd = { enable = true; settings = { default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway"; + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd hyprland"; user = "greeter"; }; }; -- cgit v1.2.3