diff options
Diffstat (limited to 'modules/compositor.nix')
-rw-r--r-- | modules/compositor.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/compositor.nix b/modules/compositor.nix new file mode 100644 index 0000000..8226842 --- /dev/null +++ b/modules/compositor.nix @@ -0,0 +1,41 @@ +# https://wiki.nixos.org/wiki/Sway +{ inputs, pkgs, ... }: +{ + programs.hyprland = { + enable = true; + xwayland.enable = true; + package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; + portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; + }; + + environment.systemPackages = with pkgs; [ + kitty # Required by Hyprland + waybar + rofi-wayland-unwrapped + rofi-rbw-wayland + ]; + + services.gnome.gnome-keyring.enable = true; + + services.greetd = { + enable = true; + settings = { + default_session = { + command = "${pkgs.hyprland}/bin/hyprland"; + user = "jras"; + }; + }; + }; + + systemd.user.services.kanshi = { + description = "kanshi daemon"; + environment = { + WAYLAND_DISPLAY="wayland-1"; + DISPLAY=":0"; + }; + serviceConfig = { + Type = "simple"; + ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file''; + }; + }; +} |