hardware config can now be set individually in the host specific configurations
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user