System/home-manager/linux/programs/emacs.nix

16 lines
367 B
Nix

{ config, lib, pkgs, inputs, ... }:
{
imports = [ ../../common/programs/emacs.nix ];
config = lib.mkIf config.nathan.programs.emacs.enable {
# Setup service
services.emacs = {
enable = config.nathan.programs.emacs.service;
package = config.nathan.programs.emacs.package;
client.enable = true;
defaultEditor = true;
};
};
}