hardware config can now be set individually in the host specific configurations

This commit is contained in:
2026-05-18 16:20:57 +02:00
parent 6e89188288
commit 396155c4e9

View File

@@ -10,6 +10,11 @@ in
{ {
options = { options = {
modules.hyprland.enable = lib.mkEnableOption "hyprland"; 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 { config = lib.mkIf config.modules.hyprland.enable {
@@ -22,6 +27,8 @@ in
"hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf; "hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf;
"backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds; "backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds;
"hypr/hyprland.hardware.conf".text = config.modules.hyprland.hardwareConfig;
"hypr/nix.conf".text = '' "hypr/nix.conf".text = ''
$defaultBrowser=${defaultBrowser} $defaultBrowser=${defaultBrowser}
''; '';