refactor(modules/nixos/desktop): xdg.nix

This commit is contained in:
Ryan Yin
2025-05-31 11:41:49 +08:00
parent fff0dc22c2
commit 149f06c645
2 changed files with 23 additions and 34 deletions

View File

@@ -1,34 +0,0 @@
{
lib,
pkgs,
...
}: let
my_terminal_desktop = [
"foot.desktop"
"Alacritty.desktop"
"kitty.desktop"
"com.mitchellh.ghostty.desktop"
];
in {
environment.systemPackages = with pkgs; [
# NOTE: We have these in home config
# foot
# Alacritty
# kitty
# ghostty
];
xdg.terminal-exec = {
enable = true;
package = pkgs.xdg-terminal-exec-mkhl;
settings = {
GNOME =
[
"com.raggesilver.BlackBox.desktop"
"org.gnome.Terminal.desktop"
]
++ my_terminal_desktop;
niri = my_terminal_desktop;
default = my_terminal_desktop;
};
};
}

View File

@@ -1,4 +1,27 @@
{pkgs, ...}: {
xdg.terminal-exec = {
enable = true;
package = pkgs.xdg-terminal-exec-mkhl;
settings = let
my_terminal_desktop = [
# NOTE: We have add these packages at user level
"Alacritty.desktop"
"kitty.desktop"
"foot.desktop"
"com.mitchellh.ghostty.desktop"
];
in {
GNOME =
my_terminal_desktop
++ [
"com.raggesilver.BlackBox.desktop"
"org.gnome.Terminal.desktop"
];
niri = my_terminal_desktop;
default = my_terminal_desktop;
};
};
xdg.portal = {
enable = true;