snowflake/user/subs/emacs.nix
2025-05-30 22:59:38 +08:00

26 lines
500 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.subs.emacs;
in
{
options.subs.emacs.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf cfg.enable {
programs.emacs.enable = true;
services.emacs = {
enable = true;
package = pkgs.emacs;
client.enable = true;
client.arguments = [ "-ca" ];
startWithUserSession = "graphical";
};
home.file = {
".spacemacs".source = ../../config/spacemacs;
};
};
}