Skip to content

Commit

Permalink
fix: global cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Feb 15, 2024
1 parent a3ead5b commit 49d7c07
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions home-manager/modules/desktop/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# config.nur.repos.xddxdd.wechat-uos
remmina
element-desktop
rustdesk
];
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
Expand Down
13 changes: 9 additions & 4 deletions home-manager/modules/desktop/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ in {
extensionPkgs
++ (with pkgs; [
blackbox-terminal
(catppuccin-kvantum.override
{
accent = toTitle config.home.catppuccin.accent;
variant = toTitle config.home.catppuccin.variant;
})
orchis-theme
]);

Expand Down Expand Up @@ -188,15 +193,15 @@ in {
};
qt = {
enable = true;
platformTheme = "gtk";
style.name = "adwaita-light";
style.package = pkgs.adwaita-qt;
#platformTheme = "qtct";
style.name = "kvantum";
};
home.sessionVariables = {
QT_STYLE_OVERRIDE = lib.mkDefault "kvantum";
XCURSOR_THEME = config.dconf.settings."org/gnome/desktop/interface".cursor-theme;
};
xdg.configFile."Kvantum/kvantum.kvconfig".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" {
General.theme = "Orchis-Light-${toTitle config.home.catppuccin.tweak}";
General.theme = "Catppuccin-${toTitle config.home.catppuccin.variant}-${toTitle config.home.catppuccin.accent}";
};

## Create startwm.sh for XRDP
Expand Down
2 changes: 2 additions & 0 deletions home-manager/modules/desktop/i18n/i18n.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ in {

home.global-persistence.directories = [
rimeConfig
".config/ibus"
".cache/ibus"
];
}
1 change: 1 addition & 0 deletions home-manager/modules/desktop/wayland-dpi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ in {
SDL_VIDEODRIVER = "wayland";
QT_STYLE_OVERRIDE = lib.mkForce "gtk";
_JAVA_AWT_WM_NONREPARENTING = "1";
XCURSOR_SIZE = 36 * cfg / default;
};
};
}
1 change: 1 addition & 0 deletions nixos/hosts/ams0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
nixosModules.services.proxy
nixosModules.services.tuic
nixosModules.services.searx
nixosModules.services.rustdesk
# nixosModules.services.sogo
];
nix.gc.options = lib.mkForce "-d";
Expand Down
7 changes: 7 additions & 0 deletions nixos/modules/services/rustdesk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{config, ...}: {
services.rustdesk-server = {
enable = true;
openFirewall = true;
relayIP = config.networking.fqdn;
};
}

0 comments on commit 49d7c07

Please sign in to comment.