feat!: got emacs and doom set up

This commit is contained in:
Nickiel12 2023-01-26 18:55:13 -08:00
parent faf7da6b3a
commit 6fa32e623e
3 changed files with 8 additions and 5 deletions

View file

@ -19,6 +19,7 @@
options = "--delete-generations 8d";
};
programs.git.enable = true;
programs.zsh.enable = true;
users.users.${user} = {
isNormalUser = true;

View file

@ -28,8 +28,8 @@ in {
users.${user} = {
imports = [
./home.nix
../modules/emacs.nix
../modules/git.nix
../modules/emacs.nix
../modules/wezterm.nix
../modules/urxvt.nix
../modules/xdg.nix

View file

@ -1,6 +1,8 @@
{ pkgs, lib, ... }:
let
configRepoUrl = "https://github.com/Nickiel12/Nicks-Doom"
configRepoUrl = "https://github.com/Nickiel12/Nicks-Doom";
git = "${pkgs.git}/bin/git";
in
{
@ -11,10 +13,10 @@ in
services.emacs.enable = true;
home.activation.doom = lib.hm.dag.entryAfter["writeBoundary"] ''
if [ ! -d .emacs.d ]; then
git clone --depth 1 https://github.com/doomemacs/doomemacs .emacs.d
${git} clone --depth 1 https://github.com/doomemacs/doomemacs .emacs.d
fi
mkdir -p .doom.d
git clone "${configRepoUrl}" "doom.d"
${git} clone ${configRepoUrl} .doom.d
'';
home.packages = with pkgs; [