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.gpg.signingKey = "0x530DA0331EFE99F5";
|
||||||
modules.gnomeBoxes.enable = true;
|
modules.gnomeBoxes.enable = true;
|
||||||
|
|
||||||
|
modules.display.scale = 2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ in
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
imports = [ ../../homes/${username}/home.nix ];
|
imports = [ ../../homes/${username}/home.nix ];
|
||||||
modules.gpg.signingKey = config.modules.gpg.signingKey;
|
modules.gpg.signingKey = config.modules.gpg.signingKey;
|
||||||
|
modules.display.scale = config.modules.display.scale;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.hyprland;
|
cfg = config.modules.hyprland;
|
||||||
|
displayCfg = config.modules.display;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
@ -56,6 +57,7 @@ in
|
||||||
"XDG_CURRENT_DESKTOP, Hyprland"
|
"XDG_CURRENT_DESKTOP, Hyprland"
|
||||||
"XDG_SESSION_DESKTOP, Hyprland"
|
"XDG_SESSION_DESKTOP, Hyprland"
|
||||||
"XDG_SESSION_TYPE, wayland"
|
"XDG_SESSION_TYPE, wayland"
|
||||||
|
"GDK_SCALE, ${toString displayCfg.scale}"
|
||||||
];
|
];
|
||||||
|
|
||||||
xwayland = {
|
xwayland = {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./discord.nix
|
./discord.nix
|
||||||
|
./display.nix
|
||||||
./displayManager.nix
|
./displayManager.nix
|
||||||
./gnomeBoxes.nix
|
./gnomeBoxes.nix
|
||||||
./gpg.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