Re-enable emacs server

Add more explicit default.nix definitions
This commit is contained in:
Evie Litherland-Smith 2023-09-01 14:33:51 +01:00
parent 4e720929da
commit 2f69cb4c57
3 changed files with 23 additions and 11 deletions

View file

@ -2,16 +2,16 @@
{
imports = [
./pass
./git
./ssh
./tui
./tmux
./hyprland
./alacritty
./firefox
./zathura
./emacs
./pass/default.nix
./git/default.nix
./ssh/default.nix
./tui/default.nix
./tmux/default.nix
./hyprland/default.nix
./alacritty/default.nix
./firefox/default.nix
./zathura/default.nix
./emacs/server.nix
];
home.packages = with pkgs; [
bitwarden

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
imports = [ ../git ];
imports = [ ../git/default.nix ];
programs.emacs.enable = true;
home.packages = with pkgs; [
# Emacs dependencies

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

@ -0,0 +1,12 @@
{ config, ... }:
{
imports = [ ./default.nix ];
services.emacs = {
enable = true;
package = config.programs.emacs.package;
defaultEditor = true;
client.enable = true;
socketActivation.enable = true;
};
}