Doom Emacs w/ Personal Config

- Update flake.lock
- Add doom emacs nix module to flake
- Change default editor to doom emacs
- Move xdg configuration to a separate file
- Change user home filepaths to use `~`
- Install doom emacs by default
- Add personal doom emacs configuration
This commit is contained in:
Sravan Balaji
2024-03-28 15:40:33 -04:00
parent b6ed41211b
commit cf7abb3e89
8 changed files with 448 additions and 233 deletions

View File

@@ -3,5 +3,6 @@
{
imports = [
./vscode.nix
./doom-emacs.nix
];
}

View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
programs.doom-emacs = {
enable = true;
doomPrivateDir = ~/.config/doom-emacs-config;
};
}

View File

@@ -7,5 +7,6 @@
./file-syncing.nix
./keyboard-configuration.nix
./passwords.nix
./xdg.nix
];
}

22
user/utilities/xdg.nix Normal file
View File

@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
xdg.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;
music = "${config.home.homeDirectory}/Media/Music";
videos = "${config.home.homeDirectory}/Media/Videos";
pictures = "${config.home.homeDirectory}/Media/Pictures";
templates = "${config.home.homeDirectory}/Templates";
download = "${config.home.homeDirectory}/Downloads";
documents = "${config.home.homeDirectory}/Documents";
desktop = null;
publicShare = null;
extraConfig = {
XDG_GAME_DIR = "${config.home.homeDirectory}/Games";
};
};
xdg.mime.enable = true;
xdg.mimeApps.enable = true;
}