From 55efe14c417720e8fa3ac620af1fb0ac82d000b6 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 4 Jan 2024 20:48:10 +0800 Subject: [PATCH] feat: force install neovim/emacs's user config --- home/base/desktop/editors/emacs/default.nix | 5 ++++- home/base/desktop/editors/neovim/default.nix | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/home/base/desktop/editors/emacs/default.nix b/home/base/desktop/editors/emacs/default.nix index f9805ddc..fdeab7e7 100644 --- a/home/base/desktop/editors/emacs/default.nix +++ b/home/base/desktop/editors/emacs/default.nix @@ -64,7 +64,10 @@ in { # allow fontconfig to discover fonts and configurations installed through `home.packages` fonts.fontconfig.enable = true; - xdg.configFile."doom".source = ./doom; + xdg.configFile."doom" = { + source = ./doom; + force = true; + }; home.activation = mkIf cfg.doom.enable { installDoomEmacs = lib.hm.dag.entryAfter ["writeBoundary"] '' diff --git a/home/base/desktop/editors/neovim/default.nix b/home/base/desktop/editors/neovim/default.nix index a630b770..38862546 100644 --- a/home/base/desktop/editors/neovim/default.nix +++ b/home/base/desktop/editors/neovim/default.nix @@ -23,7 +23,10 @@ in { # my custom astronvim config, astronvim will load it after base config # https://github.com/AstroNvim/AstroNvim/blob/v3.32.0/lua/astronvim/bootstrap.lua#L15-L16 - "astronvim/lua/user".source = ./astronvim_user; + "astronvim/lua/user" = { + source = ./astronvim_user; + force = true; + }; }; home.shellAliases = shellAliases;