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} '';