summaryrefslogtreecommitdiff
path: root/modules/compositor.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2024-11-13 22:33:37 +0100
committerJasper Ras <jaspert.ras@gmail.com>2024-11-13 22:39:43 +0100
commitf1d8afcc156b14ce44dde407bd76661bdc821e03 (patch)
treeba0b24b0c869d5c68ca8f1e5acb29d325979837f /modules/compositor.nix
parent6c181cdefe9d8d7b2b6bd47d97c7c6768b7c2ae0 (diff)
Use flake-utils-plus and set-up multiple hosts
Diffstat (limited to 'modules/compositor.nix')
-rw-r--r--modules/compositor.nix41
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'';
+ };
+ };
+}