added emacs config, changed wallpaper locations
This commit is contained in:
parent
addf311852
commit
7481580f14
163 changed files with 84 additions and 4 deletions
|
@ -1 +1 @@
|
|||
_: { imports = [ ./cli ./gui ./tui ./other ./services ]; }
|
||||
_: { imports = [ ./cli ./gui ./tui ./other ./services ./editors ]; }
|
||||
|
|
1
modules/editors/default.nix
Normal file
1
modules/editors/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
_: { imports = [ ./emacs.nix ]; }
|
71
modules/editors/emacs.nix
Normal file
71
modules/editors/emacs.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
with lib;
|
||||
# with lib.my;
|
||||
let
|
||||
cfg = config.modules.editors.emacs;
|
||||
configDir = config.dotfiles.configDir;
|
||||
in {
|
||||
options.modules.editors.emacs = {
|
||||
enable = mkBoolOpt false;
|
||||
doom = rec {
|
||||
enable = mkBoolOpt false;
|
||||
forgeUrl = "https://github.com";
|
||||
repoUrl = "${forgeUrl}/doomemacs/doomemacs";
|
||||
configRepoUrl = "${forgeUrl}/bloxx12/doom-emacs-private";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Why is this needed?
|
||||
# nixpkgs.overlays = [ inputs.emacs-overlay.overlay ];
|
||||
|
||||
user.packages = with pkgs; [
|
||||
## Emacs itself
|
||||
binutils # native-comp needs 'as', provided by this
|
||||
# 28.2 + native-comp
|
||||
((emacsPackagesFor emacsNativeComp).emacsWithPackages
|
||||
(epkgs: [ epkgs.vterm ]))
|
||||
|
||||
## Doom dependencies
|
||||
git
|
||||
(ripgrep.override { withPCRE2 = true; })
|
||||
gnutls # for TLS connectivity
|
||||
|
||||
## Optional dependencies
|
||||
fd # faster projectile indexing
|
||||
imagemagick # for image-dired
|
||||
(mkIf (config.programs.gnupg.agent.enable)
|
||||
pinentry_emacs) # in-emacs gnupg prompts
|
||||
zstd # for undo-fu-session/undo-tree compression
|
||||
|
||||
## Module dependencies
|
||||
# :checkers spell
|
||||
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
||||
# :tools editorconfig
|
||||
editorconfig-core-c # per-project style config
|
||||
# :tools lookup & :lang org +roam
|
||||
sqlite
|
||||
# :lang latex & :lang org (latex previews)
|
||||
texlive.combined.scheme-medium
|
||||
# :lang beancount
|
||||
beancount
|
||||
unstable.fava # HACK Momentarily broken on nixos-unstable
|
||||
];
|
||||
|
||||
env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ];
|
||||
|
||||
modules.shell.zsh.rcFiles = [ "${configDir}/emacs/aliases.zsh" ];
|
||||
|
||||
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
||||
|
||||
system.userActivationScripts = mkIf cfg.doom.enable {
|
||||
installDoomEmacs = ''
|
||||
if [ ! -d "$XDG_CONFIG_HOME/emacs" ]; then
|
||||
git clone --depth=1 --single-branch "${cfg.doom.repoUrl}" "$XDG_CONFIG_HOME/emacs"
|
||||
git clone "${cfg.doom.configRepoUrl}" "$XDG_CONFIG_HOME/doom"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,7 @@ _: {
|
|||
./gtk.nix
|
||||
./foot.nix
|
||||
./mpv.nix
|
||||
./kakoune
|
||||
# ./kakoune
|
||||
./qt.nix
|
||||
./zathura.nix
|
||||
./stylix.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue