Setup emacs as editor, fix kdeconnect

This commit is contained in:
Curt Spark 2024-12-13 19:42:46 +00:00
parent 0dd7700501
commit 22e1cd672b
4 changed files with 15 additions and 4 deletions

View File

@ -13,7 +13,7 @@
]; ];
# KDE Connect # KDE Connect
services.kdeconnect.enable = true; # services.kdeconnect.enable = true;
services.kdeconnect.indicator = true; services.kdeconnect.indicator = true;
# Custom Desktop Configurations # Custom Desktop Configurations
@ -52,4 +52,8 @@
nixos-rebuild-system-flake = "sudo nixos-rebuild switch --flake /etc/nixos#laptop"; nixos-rebuild-system-flake = "sudo nixos-rebuild switch --flake /etc/nixos#laptop";
}; };
home.sessionVariables = {
EDITOR = "emacsclient -n";
};
} }

View File

@ -314,8 +314,8 @@ fi
]; ];
home.sessionVariables = { home.sessionVariables = {
# EDITOR = "emacsclient -nw"; EDITOR = "emacsclient -n";
EDITOR = "nvim"; # EDITOR = "nvim";
# Dotnet path not found fix # Dotnet path not found fix
DOTNET_ROOT = "${pkgs.dotnet-sdk}"; DOTNET_ROOT = "${pkgs.dotnet-sdk}";

View File

@ -201,7 +201,8 @@
DOTNET_ROOT = "${pkgs.dotnet-sdk}"; DOTNET_ROOT = "${pkgs.dotnet-sdk}";
# Set neovim to be used instead of less for viewing manpages # Set neovim to be used instead of less for viewing manpages
MANPAGER = "nvim +Man!"; # MANPAGER = "nvim +Man!";
MANPAGER = "emacsclient -n";
# Nicer terminal prompt # Nicer terminal prompt
PS1="\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;35m\]\w\[\e[0m\] \$ "; PS1="\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;35m\]\w\[\e[0m\] \$ ";

View File

@ -31,6 +31,7 @@ in
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
xorg.libxcb
gcr # For GNOME gpg pinentry gcr # For GNOME gpg pinentry
pinentry-qt pinentry-qt
@ -81,6 +82,9 @@ in
# For udiskie # For udiskie
services.udisks2.enable = true; services.udisks2.enable = true;
# KDE Connect
programs.kdeconnect.enable = true;
# Whether to enable GNOME Keyring daemon, a service designed to take care of the users security credentials, such as user names and passwords. # Whether to enable GNOME Keyring daemon, a service designed to take care of the users security credentials, such as user names and passwords.
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
@ -127,6 +131,7 @@ in
}; };
environment.sessionVariables = { environment.sessionVariables = {
EDITOR="emacsclient -n";
QT_QPA_PLATFORMTHEME = "qt6ct"; QT_QPA_PLATFORMTHEME = "qt6ct";
SDL_VIDEODRIVER = "x11,windows"; SDL_VIDEODRIVER = "x11,windows";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
@ -134,6 +139,7 @@ in
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass"; SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
}; };
environment.variables = { environment.variables = {
EDITOR="emacsclient -n";
QT_QPA_PLATFORMTHEME = "qt6ct"; QT_QPA_PLATFORMTHEME = "qt6ct";
SDL_VIDEODRIVER = "x11,windows"; SDL_VIDEODRIVER = "x11,windows";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";