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:
@@ -3,5 +3,6 @@
|
||||
{
|
||||
imports = [
|
||||
./vscode.nix
|
||||
./doom-emacs.nix
|
||||
];
|
||||
}
|
||||
|
8
user/development/doom-emacs.nix
Normal file
8
user/development/doom-emacs.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ~/.config/doom-emacs-config;
|
||||
};
|
||||
}
|
@@ -7,5 +7,6 @@
|
||||
./file-syncing.nix
|
||||
./keyboard-configuration.nix
|
||||
./passwords.nix
|
||||
./xdg.nix
|
||||
];
|
||||
}
|
||||
|
22
user/utilities/xdg.nix
Normal file
22
user/utilities/xdg.nix
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user