Skip to content

Commit

Permalink
home-manager/emacs: move darwin check to it
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 5, 2023
1 parent ad2eb08 commit f444830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion home-manager/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
config = lib.mkIf config.home-manager.darwin.enable {
home-manager = {
dev.enable = lib.mkDefault true;
editor.emacs.enable = lib.mkDefault true;
};

targets.darwin.defaults = {
Expand Down
3 changes: 2 additions & 1 deletion home-manager/editor/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ let
in
{
options.home-manager.editor.emacs.enable = lib.mkEnableOption "Emacs config" // {
default = config.home-manager.editor.enable && config.home-manager.desktop.enable;
default = config.home-manager.editor.enable &&
(config.home-manager.desktop.enable || config.home-manager.darwin.enable);
};

config = lib.mkIf config.home-manager.editor.emacs.enable {
Expand Down

0 comments on commit f444830

Please sign in to comment.