add qtct config and add portals
This commit is contained in:
parent
e3219dc9b4
commit
7ff7b9b416
2 changed files with 49 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
{ nixos-config, config, ... }:
|
||||
{
|
||||
nixos-config,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
time.timeZone = "Etc/GMT-1";
|
||||
isGraphical = true;
|
||||
|
@ -16,4 +21,20 @@
|
|||
]
|
||||
else
|
||||
[ ./graphical/gtk-fixes ];
|
||||
xdg.portal = {
|
||||
xdgOpenUsePortal = true;
|
||||
wlr.enable = config.isSway;
|
||||
extraPortals =
|
||||
with pkgs;
|
||||
(lib.mkMerge [
|
||||
[
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-kde
|
||||
]
|
||||
(lib.mkIf config.isSway [
|
||||
xdg-desktop-portal-wlr
|
||||
])
|
||||
]);
|
||||
config.common.default = if config.isSway then "wlr" else "kde";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -79,10 +79,37 @@ let
|
|||
'';
|
||||
installPhase = "true";
|
||||
};
|
||||
qtctPalette = pkgs.writeText "colors.conf" (
|
||||
with config.lib.stylix.colors;
|
||||
''
|
||||
[ColorScheme]
|
||||
active_colors=#ff{{ base0C-hex }}, #ff${base01}, #ff${base01}, #ff${base05}, #ff${base03}, #ff${base04}, #ff{{ base0E-hex }}, #ff${base06}, #ff${base05}, #ff${base01}, #ff${base00}, #ff${base03}, #ff${base02}, #ff{{ base0E-hex }}, #ff${base09}, #ff${base08}, #ff${base02}, #ff${base05}, #ff${base01}, #ff{{ base0E-hex }}, #8f{{ base0E-hex }}
|
||||
disabled_colors=#ff{{ base0F-hex }}, #ff${base01}, #ff${base01}, #ff${base05}, #ff${base03}, #ff${base04}, #ff{{ base0F-hex }}, #ff{{ base0F-hex }}, #ff{{ base0F-hex }}, #ff${base01}, #ff${base00}, #ff${base03}, #ff${base02}, #ff{{ base0E-hex }}, #ff${base09}, #ff${base08}, #ff${base02}, #ff${base05}, #ff${base01}, #ff{{ base0F-hex }}, #8f{{ base0F-hex }}
|
||||
inactive_colors=#ff{{ base0C-hex }}, #ff${base01}, #ff${base01}, #ff${base05}, #ff${base03}, #ff${base04}, #ff{{ base0E-hex }}, #ff${base06}, #ff${base05}, #ff${base01}, #ff${base00}, #ff${base03}, #ff${base02}, #ff{{ base0E-hex }}, #ff${base09}, #ff${base08}, #ff${base02}, #ff${base05}, #ff${base01}, #ff{{ base0E-hex }}, #8f{{ base0E-hex }}
|
||||
''
|
||||
);
|
||||
in
|
||||
{
|
||||
home-manager.users.root.stylix.targets.kde.enable = lib.mkForce false;
|
||||
home-manager.users.darkkirb.imports = [
|
||||
{
|
||||
xdg.configFile = {
|
||||
"qt5ct/qt5ct.conf".text = lib.generators.toINI { } {
|
||||
Appearance = {
|
||||
custom_palette = true;
|
||||
color_scheme_path = "${qtctPalette}";
|
||||
standard_dialogs = "xdgdesktopportal";
|
||||
};
|
||||
};
|
||||
"qt6ct/qt6ct.conf".text = lib.generators.toINI { } {
|
||||
Appearance = {
|
||||
custom_palette = true;
|
||||
color_scheme_path = "${qtctPalette}";
|
||||
standard_dialogs = "xdgdesktopportal";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
stylix.targets.kde.enable = lib.mkForce (config.isGraphical && !config.isSway);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue