Setup emacs server
This commit is contained in:
parent
0adc39744a
commit
a8e26d1a33
|
|
@ -58,7 +58,7 @@ in
|
||||||
firefox
|
firefox
|
||||||
librewolf
|
librewolf
|
||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
emacs-gtk
|
# emacs-gtk
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
discord
|
discord
|
||||||
lutris
|
lutris
|
||||||
|
|
@ -182,6 +182,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Emacs install and enable daemon/server mode. Set to use unstable pure gtk branch (From emacs-overlay)
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.emacs-gtk;
|
||||||
|
};
|
||||||
|
|
||||||
# MPDCRON to automate MPD related events, using it to automatically restart mpd-discord-rpc service to solve issues
|
# MPDCRON to automate MPD related events, using it to automatically restart mpd-discord-rpc service to solve issues
|
||||||
systemd.user.services.mpdcron = let
|
systemd.user.services.mpdcron = let
|
||||||
script = pkgs.writeShellScript "mpdcron-script"
|
script = pkgs.writeShellScript "mpdcron-script"
|
||||||
|
|
@ -224,7 +230,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "emacs -nw";
|
EDITOR = "emacsclient -nw";
|
||||||
|
|
||||||
# Dotnet path not found fix
|
# Dotnet path not found fix
|
||||||
DOTNET_ROOT = "${pkgs.dotnet-sdk}";
|
DOTNET_ROOT = "${pkgs.dotnet-sdk}";
|
||||||
|
|
|
||||||
20
global.nix
20
global.nix
|
|
@ -13,6 +13,7 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nix-index
|
nix-index
|
||||||
git
|
git
|
||||||
|
gcc
|
||||||
nodejs
|
nodejs
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
|
@ -165,6 +166,25 @@
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Emacs install and enable daemon/server mode.
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.emacs-gtk;
|
||||||
|
};
|
||||||
|
systemd.services.emacs = {
|
||||||
|
description = "Emacs server daemon for root";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = with pkgs; [ emacs-gtk ];
|
||||||
|
enable = true;
|
||||||
|
serviceConfig = {
|
||||||
|
User = "root";
|
||||||
|
Group = "root";
|
||||||
|
};
|
||||||
|
script = "
|
||||||
|
emacs --daemon
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
# Virt Manager Installation
|
# Virt Manager Installation
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue