diff --git a/home-manager/editor/emacs/default.nix b/home-manager/editor/emacs/default.nix index e688cb1c..a5b93ffe 100644 --- a/home-manager/editor/emacs/default.nix +++ b/home-manager/editor/emacs/default.nix @@ -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 { diff --git a/home-manager/editor/vscode/default.nix b/home-manager/editor/vscode/default.nix index dd71fa73..e57aa121 100644 --- a/home-manager/editor/vscode/default.nix +++ b/home-manager/editor/vscode/default.nix @@ -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 {