Re-enable emacs server as separate nix expression

This commit is contained in:
Evie Litherland-Smith 2023-07-31 14:46:48 +01:00
parent c722efbe9b
commit 3844517405
4 changed files with 13 additions and 11 deletions

View file

@ -1,13 +1,4 @@
{ pkgs, ... }: { pkgs, ... }: {
{
# Emacs server service
services.emacs = {
enable = false;
package = pkgs.emacs28NativeComp;
defaultEditor = true;
startWithUserSession = false;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
# Emacs dependencies # Emacs dependencies
emacs28NativeComp emacs28NativeComp

10
home/emacs/server.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs, ... }: {
imports = [ ./default.nix ];
# Emacs server service
services.emacs = {
enable = true;
package = pkgs.emacs28NativeComp;
defaultEditor = true;
startWithUserSession = true;
};
}

View file

@ -4,6 +4,7 @@
in { in {
imports = [ imports = [
shellConfig shellConfig
../../home/emacs/server.nix
../../home/git/personal.nix ../../home/git/personal.nix
../../home/ssh/personal.nix ../../home/ssh/personal.nix
../../home/tui ../../home/tui

View file

@ -11,11 +11,11 @@ let
in { in {
imports = [ imports = [
shellConfig shellConfig
../../home/emacs/server.nix
../../home/git/work.nix ../../home/git/work.nix
../../home/ssh/work.nix ../../home/ssh/work.nix
../../home/tui ../../home/tui
../../home/hyprland ../../home/hyprland
../../home/emacs
../../home/wezterm ../../home/wezterm
]; ];
home = { home = {