Skip to content

Commit

Permalink
home-manager/editor: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 28, 2023
1 parent 995fa92 commit 2968327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home-manager/editor/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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 or false));
};

config = lib.mkIf config.home-manager.editor.emacs.enable {
Expand Down
2 changes: 1 addition & 1 deletion home-manager/editor/vscode/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
options.home-manager.editor.vscode.enable = lib.mkEnableOption "VScode config" // {
default = (config.home-manager.editor.enable && config.home-manager.desktop.enable);
default = (config.home-manager.editor.enable && (config.home-manager.desktop.enable or false));
};

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

0 comments on commit 2968327

Please sign in to comment.