Add emacs user service

This commit is contained in:
William 2023-08-16 10:31:43 -03:00
parent 545c8c35ec
commit 33f92a4dbd
3 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ ... }: { ... }:
{ {
imports = [ ./home.nix ./programs.nix ]; imports = [ ./home.nix ./programs.nix ./services.nix ];
} }

View file

@ -5,10 +5,7 @@
username = "user"; username = "user";
homeDirectory = "/home/user"; homeDirectory = "/home/user";
stateVersion = "22.05"; stateVersion = "22.05";
sessionVariables = { sessionVariables = { TZ = ":/etc/localtime"; };
EDITOR = "micro";
TZ = ":/etc/localtime";
};
file = { file = {
".config/starship.toml".source = ".config/starship.toml".source =
"${inputs.dotfiles}/.config/starship.toml"; "${inputs.dotfiles}/.config/starship.toml";

View file

@ -0,0 +1,9 @@
{ inputs, config, pkgs, lib, ... }:
{
services.emacs = {
enable = true;
defaultEditor = true;
socketActivation.enable = true;
};
}