From d4ddd2ce470f716b990a7a2c0cef0f6138597376 Mon Sep 17 00:00:00 2001
From: DerGrumpf
Date: Tue, 25 Mar 2025 02:18:28 +0100
Subject: [PATCH] Changed: Hyprland Config
---
home/hyprland/default.nix | 38 +++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix
index 693d878..45f9b0b 100644
--- a/home/hyprland/default.nix
+++ b/home/hyprland/default.nix
@@ -5,7 +5,10 @@
wayland.windowManager.hyprland = {
inherit package;
enable = true;
- systemd.variables = [ "--all" ];
+ systemd = {
+ enable = true;
+ variables = [ "--all" ];
+ };
plugins = [
#inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
];
@@ -25,4 +28,37 @@
];
extraConfig = builtins.readFile ./hyprland.conf;
};
+
+ # NOTE: this executable is used by greetd to start a wayland session when system boot up
+ # with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module
+ home.file.".wayland-session" = {
+ source = "${package}/bin/Hyprland";
+ executable = true;
+ };
+
+ # hyprland configs, based on https://github.com/notwidow/hyprland
+ /*xdg.configFile = {
+ "hypr/mako" = {
+ source = ../conf/mako;
+ recursive = true;
+ };
+ "hypr/scripts" = {
+ source = ../conf/scripts;
+ recursive = true;
+ };
+ "hypr/waybar" = {
+ source = ../conf/waybar;
+ recursive = true;
+ };
+ "hypr/wlogout" = {
+ source = ../conf/wlogout;
+ recursive = true;
+ };
+
+ # music player - mpd
+ "mpd" = {
+ source = ../conf/mpd;
+ recursive = true;
+ };
+ };*/
}