mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
profiles/editors: automate Doom Emacs installation
This commit is contained in:
parent
eaa16e5c7b
commit
5cbd36bcf0
@ -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.
|
# Doom Emacs dependencies.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# This is installed just to get Geiser to properly work.
|
# This is installed just to get Geiser to properly work.
|
||||||
|
@ -144,13 +144,6 @@ in
|
|||||||
type = "git";
|
type = "git";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ...Doom Emacs,...
|
|
||||||
"${config.xdg.configHome}/emacs" = {
|
|
||||||
url = "https://github.com/doomemacs/doomemacs.git";
|
|
||||||
type = "git";
|
|
||||||
extraArgs = [ "--depth" "1" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# ...my gopass secrets,...
|
# ...my gopass secrets,...
|
||||||
".local/share/gopass/stores/personal" = {
|
".local/share/gopass/stores/personal" = {
|
||||||
url = "gitea@code.foodogsquared.one:foodogsquared/gopass-secrets-personal.git";
|
url = "gitea@code.foodogsquared.one:foodogsquared/gopass-secrets-personal.git";
|
||||||
@ -163,16 +156,4 @@ in
|
|||||||
type = "git";
|
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;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user