From 71b417b7f95309881a6f829c603ee950597c1734 Mon Sep 17 00:00:00 2001 From: kat witch Date: Sun, 14 Mar 2021 04:04:27 +0000 Subject: [PATCH] I forgot to add if statements for these. --- config/profiles/gui/home/email.nix | 2 ++ config/profiles/kat/home/xdg.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/profiles/gui/home/email.nix b/config/profiles/gui/home/email.nix index 83dcd4c8..a70d37f5 100644 --- a/config/profiles/gui/home/email.nix +++ b/config/profiles/gui/home/email.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: { + config = lib.mkIf config.deploy.profile.gui { programs.notmuch = { enable = true; hooks = { preNew = "mbsync --all"; }; @@ -31,4 +32,5 @@ }; }; programs.vim.plugins = [ pkgs.arc.pkgs.vimPlugins.notmuch-vim ]; +}; } diff --git a/config/profiles/kat/home/xdg.nix b/config/profiles/kat/home/xdg.nix index 645df724..f7e1522c 100644 --- a/config/profiles/kat/home/xdg.nix +++ b/config/profiles/kat/home/xdg.nix @@ -1,5 +1,7 @@ { config, lib, ... }: { - xdg.enable = true; + config = lib.mkIf config.deploy.profile.kat { + xdg.enable = true; + }; }