Add emacs user service
This commit is contained in:
parent
545c8c35ec
commit
33f92a4dbd
3 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./home.nix ./programs.nix ];
|
imports = [ ./home.nix ./programs.nix ./services.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
9
users/common/services.nix
Normal file
9
users/common/services.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
socketActivation.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue