39 lines
829 B
Nix
39 lines
829 B
Nix
{ config, lib, pkgs, inputs, ... }@args:
|
|
|
|
let cfg = config.sydnix.users.msyds.emacs;
|
|
in {
|
|
options.sydnix.users.msyds.emacs = {
|
|
enable = lib.mkEnableOption ''Emacs, à la msyds'';
|
|
userDir = lib.mkOption {
|
|
description = ''
|
|
The path to the Emacs user directory.
|
|
'';
|
|
default = "/persist/dots/modules/home/users/msyds/emacs";
|
|
type = lib.types.path;
|
|
};
|
|
package = lib.mkPackageOption pkgs "emacs" {
|
|
default = [ "emacs-pgtk" ];
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./emacs/jinx.nix
|
|
];
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
sydnix.users.msyds.emacs = {
|
|
jinx.enable = true;
|
|
};
|
|
|
|
sydnix.emacs = {
|
|
enable = true;
|
|
inherit (cfg) userDir;
|
|
fontPackages = [
|
|
pkgs.julia-mono
|
|
pkgs.nerd-fonts.victor-mono
|
|
pkgs.ibm-plex
|
|
];
|
|
};
|
|
};
|
|
}
|