started splitting up graphical programs because some of them don't really work well on ubuntu
This commit is contained in:
@@ -62,15 +62,8 @@
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
# # fonts?
|
||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
] ++ lib.optionals config.graphical [
|
||||
discord
|
||||
spotify
|
||||
sublime4
|
||||
joplin-desktop
|
||||
] ++ lib.optionals config._1password [
|
||||
_1password-cli
|
||||
gh # GitHub CLI with 1Password integration
|
||||
];
|
||||
]
|
||||
++ lib.optionals config.graphical.discord [ discord ];
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, pkgs, lib, nixgl, ... }:
|
||||
{
|
||||
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical) {
|
||||
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical.ghostty) {
|
||||
TERMINAL = "ghostty";
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
nixGL.defaultWrapper = "mesa";
|
||||
nixGL.installScripts = [ "mesa" ];
|
||||
|
||||
programs.ghostty = lib.mkIf (config.enableShell && config.graphical) {
|
||||
programs.ghostty = lib.mkIf (config.enableShell && config.graphical.ghostty) {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
package = config.lib.nixGL.wrap pkgs.ghostty;
|
||||
@@ -52,7 +52,7 @@
|
||||
};
|
||||
|
||||
# https://github.com/ghostty-org/ghostty/discussions/3763#discussioncomment-11699970
|
||||
xdg.desktopEntries."com.mitchellh.ghostty" = lib.mkIf (config.enableShell && config.graphical) {
|
||||
xdg.desktopEntries."com.mitchellh.ghostty" = lib.mkIf (config.enableShell && config.graphical.ghostty) {
|
||||
name = "Ghostty";
|
||||
type = "Application";
|
||||
comment = "A terminal emulator";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.vscode = lib.mkIf config.graphical {
|
||||
programs.vscode = lib.mkIf config.graphical.vscode {
|
||||
enable = true;
|
||||
package = pkgs.vscode;
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
|
||||
Reference in New Issue
Block a user