~ruther/nixos-config

1790daa6a2bf21861190cbfa31ec3fa6ecba1375 — Rutherther 1 year, 6 months ago bbd228a
fix: remove doom installation from activation, the user will install
2 files changed, 0 insertions(+), 21 deletions(-)

M hosts/configuration.nix
M modules/editors/emacs/home.nix
M hosts/configuration.nix => hosts/configuration.nix +0 -2
@@ 104,8 104,6 @@
    '';
  };

  systemd.services."home-manager-${user}".serviceConfig.TimeoutStartSec = lib.mkForce "20m";

  nix = {                                   # Nix Package Manager settings
    settings ={
      auto-optimise-store = true;           # Optimise syslinks

M modules/editors/emacs/home.nix => modules/editors/emacs/home.nix +0 -19
@@ 32,25 32,6 @@
    ];
  };

  home.activation = {
    installDoomEmacs = {
      after = [ "writeBoundary" "createXdgUserDirectories" ];
      before = [ ];
      data = ''
        EMACS="$HOME/.emacs.d"

        if [ ! -d "$EMACS" ]; then
          ${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs.git $EMACS

          bash -c "yes || true" | $EMACS/bin/doom install

          rm -rf $HOME/.doom.d
          ln -s ${location}/modules/editors/emacs/doom.d $HOME/.doom.d
          $EMACS/bin/doom sync
        fi'';
    };
  };

  home.packages = with pkgs; [
    emacs-all-the-icons-fonts
    #binutils # for native comp

Do not follow this link