Just so there is a backup

This commit is contained in:
2024-11-18 09:11:55 +02:00
parent 85ecb7b4a0
commit 4984e0a3ed
34 changed files with 1830 additions and 152 deletions
@@ -3,7 +3,7 @@ let
isEnabled =
config.azos.emacs.enable && config.azos.suites.base.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
localPkgName = "azos-emacs-base";
# localPkgName = "azos-emacs-base";
in
{
options.azos.emacs.enable = (azos-utils.mkFeatureEnableOption {
@@ -20,18 +20,18 @@ in
description = "List of packages for Emacs.";
};
options.azos.emacs.enabledSuites = lib.mkOption{
default = [];
description = "List of enabled suite names for Emacs. Used to enable the " +
"custom packages in init.el.";
};
# options.azos.emacs.enabledSuites = lib.mkOption{
# default = [];
# description = "List of enabled suite names for Emacs. Used to enable the " +
# "custom packages in init.el.";
# };
#Set config
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.base];
azos.emacs.enabledSuites = [localPkgName];
# azos.emacs.enabledSuites = [localPkgName];
#Global instantiation of Emacs
programs.emacs = {
@@ -40,12 +40,9 @@ in
((pkgs.emacsPackagesFor config.azos.emacs.emacspkg).emacsWithPackages (
config.azos.emacs.pkgs
));
extraConfig = lib.strings.concatStringsSep "\n"
(builtins.map (s : "(require '" + s + ")\n")
config.azos.emacs.enabledSuites);
# extraConfig = lib.strings.concatStringsSep "\n"
# (builtins.map (s : "(require '" + s + ")\n")
# config.azos.emacs.enabledSuites);
};
};
# imports = [./vterm.nix];
}