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 = [ imports = [
./pass ./pass/default.nix
./git ./git/default.nix
./ssh ./ssh/default.nix
./tui ./tui/default.nix
./tmux ./tmux/default.nix
./hyprland ./hyprland/default.nix
./alacritty ./alacritty/default.nix
./firefox ./firefox/default.nix
./zathura ./zathura/default.nix
./emacs ./emacs/server.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
bitwarden bitwarden

View file

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