diff --git a/modules/home-manager/profiles/editors.nix b/modules/home-manager/profiles/editors.nix index 42fc63d2..3e339449 100644 --- a/modules/home-manager/profiles/editors.nix +++ b/modules/home-manager/profiles/editors.nix @@ -54,6 +54,17 @@ in { ]; }; + # Automatically install Doom Emacs from here. + home.mutableFile."${config.xdg.configHome}/emacs" = { + url = "https://github.com/doomemacs/doomemacs.git"; + type = "git"; + extraArgs = [ "--depth" "1" ]; + postScript = '' + ${config.xdg.configHome}/emacs/bin/doom install --no-config --no-fonts --install --force + ${config.xdg.configHome}/emacs/bin/doom sync + ''; + }; + # Doom Emacs dependencies. home.packages = with pkgs; [ # This is installed just to get Geiser to properly work. diff --git a/users/home-manager/foo-dogsquared/default.nix b/users/home-manager/foo-dogsquared/default.nix index 08d066e4..97cd8764 100644 --- a/users/home-manager/foo-dogsquared/default.nix +++ b/users/home-manager/foo-dogsquared/default.nix @@ -144,13 +144,6 @@ in type = "git"; }; - # ...Doom Emacs,... - "${config.xdg.configHome}/emacs" = { - url = "https://github.com/doomemacs/doomemacs.git"; - type = "git"; - extraArgs = [ "--depth" "1" ]; - }; - # ...my gopass secrets,... ".local/share/gopass/stores/personal" = { url = "gitea@code.foodogsquared.one:foodogsquared/gopass-secrets-personal.git"; @@ -163,16 +156,4 @@ in type = "git"; }; }; - - systemd.user.services.fetch-mutable-files = { - Service.ExecStartPost = - let - script = pkgs.writeShellScript "post-fetch-mutable-files" '' - # Automate installation of Doom Emacs. - ${config.xdg.configHome}/emacs/bin/doom install --no-config --no-fonts --install --force - ${config.xdg.configHome}/emacs/bin/doom sync - ''; - in - builtins.toString script; - }; }