From 396155c4e9db7bbe655a00a6ecc943761f732016 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Mon, 18 May 2026 16:20:57 +0200 Subject: [PATCH] hardware config can now be set individually in the host specific configurations --- homemanager/hyprland.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homemanager/hyprland.nix b/homemanager/hyprland.nix index 5c71af7..7cb8ff1 100644 --- a/homemanager/hyprland.nix +++ b/homemanager/hyprland.nix @@ -10,6 +10,11 @@ in { options = { modules.hyprland.enable = lib.mkEnableOption "hyprland"; + modules.hyprland.hardwareConfig = lib.mkOption { + type = lib.types.str; + default = ""; + description = "extra configuration that is hardware specific"; + }; }; config = lib.mkIf config.modules.hyprland.enable { @@ -22,6 +27,8 @@ in "hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf; "backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds; + "hypr/hyprland.hardware.conf".text = config.modules.hyprland.hardwareConfig; + "hypr/nix.conf".text = '' $defaultBrowser=${defaultBrowser} '';