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

@@ -11,8 +11,11 @@
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = inputs@{ self, nixpkgs, nixpkgs-stable, home-manager, disko, nix-doom-emacs, ... }:
let
# --- SYSTEM SETTINGS --- #
systemSettings = {
@@ -36,7 +39,7 @@
theme = "dracula"; # Selected theme from themes directory
browser = "vivaldi"; # Default browser
term = "kitty"; # Default terminal command
editor = "vim"; # Default editor
editor = "emacsclient"; # Default editor
spawnEditor =
if (editor == "emacsclient") then
"emacsclient -c -a 'emacs'"
@@ -72,6 +75,7 @@
inherit pkgs;
modules = [
(./. + "/profiles" + ("/" + systemSettings.profile) + "/home.nix")
nix-doom-emacs.hmModule
];
extraSpecialArgs = {
inherit pkgs-stable;