mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
declare GDK_SCALE in host cfg
This commit is contained in:
parent
d2c45940d3
commit
0840f43ffd
|
@ -3,8 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
config = let
|
|
||||||
cfg = config.ar.home.defaultApps;
|
cfg = config.ar.home.defaultApps;
|
||||||
inherit
|
inherit
|
||||||
(import ./mimetypes.nix)
|
(import ./mimetypes.nix)
|
||||||
|
@ -15,8 +14,8 @@
|
||||||
imageFiles
|
imageFiles
|
||||||
videoFiles
|
videoFiles
|
||||||
;
|
;
|
||||||
in
|
in {
|
||||||
lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
dconf = {
|
dconf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -102,8 +102,6 @@
|
||||||
region = "${bin} -m region -o ${folder}";
|
region = "${bin} -m region -o ${folder}";
|
||||||
};
|
};
|
||||||
|
|
||||||
gdk_scale = "1.5";
|
|
||||||
|
|
||||||
clamshell = pkgs.writeShellScript "hyprland-clamshell" ''
|
clamshell = pkgs.writeShellScript "hyprland-clamshell" ''
|
||||||
NUM_MONITORS=$(${hyprctl} monitors all | grep Monitor | wc --lines)
|
NUM_MONITORS=$(${hyprctl} monitors all | grep Monitor | wc --lines)
|
||||||
if [ "$1" == "on" ]; then
|
if [ "$1" == "on" ]; then
|
||||||
|
@ -194,9 +192,6 @@
|
||||||
force_zero_scaling = true
|
force_zero_scaling = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# toolkit-specific scale
|
|
||||||
env = GDK_SCALE,${gdk_scale}
|
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,${toString config.home.pointerCursor.size}
|
env = XCURSOR_SIZE,${toString config.home.pointerCursor.size}
|
||||||
env = QT_QPA_PLATFORMTHEME,qt6ct
|
env = QT_QPA_PLATFORMTHEME,qt6ct
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "1.5";
|
||||||
networking.hostName = "fallarbor";
|
networking.hostName = "fallarbor";
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "1.5";
|
||||||
networking.hostName = "lavaridge";
|
networking.hostName = "lavaridge";
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
||||||
ar = {
|
ar = {
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "1.25";
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
networking.hostName = "mandarin";
|
networking.hostName = "mandarin";
|
||||||
|
|
||||||
|
|
|
@ -91,8 +91,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "1.25";
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
zramSwap.memoryPercent = 100;
|
zramSwap.memoryPercent = 100;
|
||||||
|
|
||||||
ar = {
|
ar = {
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "2";
|
||||||
networking.hostName = "petalburg";
|
networking.hostName = "petalburg";
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
||||||
ar = {
|
ar = {
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables.GDK_SCALE = "1.25";
|
||||||
networking.hostName = "rustboro";
|
networking.hostName = "rustboro";
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
zramSwap.memoryPercent = 100;
|
zramSwap.memoryPercent = 100;
|
||||||
|
|
Loading…
Reference in a new issue