Add display scaling option for GDK applications
This commit is contained in:
parent
0dc7671926
commit
2937154e38
|
|
@ -16,4 +16,5 @@
|
|||
modules.gpg.signingKey = "0x530DA0331EFE99F5";
|
||||
modules.gnomeBoxes.enable = true;
|
||||
|
||||
modules.display.scale = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ in
|
|||
users.${username} = {
|
||||
imports = [ ../../homes/${username}/home.nix ];
|
||||
modules.gpg.signingKey = config.modules.gpg.signingKey;
|
||||
modules.display.scale = config.modules.display.scale;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.hyprland;
|
||||
displayCfg = config.modules.display;
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
|
|
@ -56,6 +57,7 @@ in
|
|||
"XDG_CURRENT_DESKTOP, Hyprland"
|
||||
"XDG_SESSION_DESKTOP, Hyprland"
|
||||
"XDG_SESSION_TYPE, wayland"
|
||||
"GDK_SCALE, ${toString displayCfg.scale}"
|
||||
];
|
||||
|
||||
xwayland = {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
{
|
||||
imports = [
|
||||
./discord.nix
|
||||
./display.nix
|
||||
./displayManager.nix
|
||||
./gnomeBoxes.nix
|
||||
./gpg.nix
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.display = {
|
||||
scale = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
description = "Display Scaling";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue