mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
feat!: got emacs and doom set up
This commit is contained in:
parent
faf7da6b3a
commit
6fa32e623e
3 changed files with 8 additions and 5 deletions
|
@ -19,6 +19,7 @@
|
|||
options = "--delete-generations 8d";
|
||||
};
|
||||
|
||||
programs.git.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
users.users.${user} = {
|
||||
isNormalUser = true;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
@ -9,12 +11,12 @@ in
|
|||
package = pkgs.emacs-gtk;
|
||||
};
|
||||
services.emacs.enable = true;
|
||||
home.activation.doom = lib.hm.dag.entryAfter["writeBoundary"] ''
|
||||
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; [
|
||||
|
|
Loading…
Reference in a new issue