Switch back to catppuccin (macchiato)

Move emacs config from system level to home-manager to make use of
stylix theming

Add git-gutter package for emacs
This commit is contained in:
Evie Litherland-Smith 2023-11-05 05:55:52 +00:00
parent 9294ce5626
commit b14a2991b2
6 changed files with 149 additions and 156 deletions

View file

@ -129,9 +129,11 @@
stylix = { stylix = {
image = ./wallpapers/default.jpg; image = ./wallpapers/default.jpg;
base16Scheme = base16Scheme =
"${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml"; "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
polarity = "dark"; polarity = "dark";
opacity = { opacity = {
applications = 0.8;
desktop = 0.5;
popups = 0.5; popups = 0.5;
terminal = 0.8; terminal = 0.8;
}; };

View file

@ -1,13 +1,99 @@
{ config, pkgs, crafted-emacs, ... }: { config, pkgs, crafted-emacs, ... }:
{ {
stylix.targets.emacs.enable = false;
xdg.configFile = { xdg.configFile = {
"emacs/init.el".source = ./init.el; "emacs/init.el".source = ./init.el;
"emacs/snippets".source = ./snippets; "emacs/snippets".source = ./snippets;
"emacs/modules".source = ./modules; "emacs/modules".source = ./modules;
"emacs/crafted-emacs".source = crafted-emacs; "emacs/crafted-emacs".source = crafted-emacs;
}; };
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
extraPackages = epkgs:
with epkgs; [
# theme-packages
doom-themes
# completion-packages
cape
consult
corfu
corfu-terminal
embark
embark-consult
marginalia
orderless
vertico
# ide-packages
editorconfig
aggressive-indent
ibuffer-project
treesit-grammars.with-all-grammars
treesit-auto
apheleia
direnv
goto-chg
rainbow-delimiters
yasnippet
yasnippet-snippets
nix-mode
rust-mode
# media-packages
emms
# org-packages
org-roam
org-appear
org-cliplink
org-journal
org-modern
citar
citar-embark
citar-org-roam
khalel
# project-packages
magit
git-gutter
# social-packages
mastodon
# ui-packages
all-the-icons
nerd-icons
nerd-icons-completion
nerd-icons-dired
nerd-icons-ibuffer
page-break-lines
dashboard
doom-modeline
helpful
which-key
link-hint
# writing-packages
pdf-tools
markdown-mode
pandoc-mode
auctex
auctex-latexmk
# email-packages
mu4e
mu4e-alert
# feed-packages
elfeed
elfeed-org
elfeed-webkit
elfeed-tube
elfeed-tube-mpv
];
};
services.git-sync = { services.git-sync = {
enable = true; enable = true;
repositories = with config.home; { repositories = with config.home; {
@ -25,8 +111,16 @@
}; };
}; };
}; };
home = { home.packages = with pkgs; [
packages = with pkgs; [ # Emacs requirements
coreutils
fd
ripgrep
imagemagick
languagetool
wordnet
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
# Language-specific requirements # Language-specific requirements
sqlite sqlite
pandoc pandoc
@ -70,5 +164,4 @@
nodePackages.vscode-json-languageserver-bin nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs nodePackages.dockerfile-language-server-nodejs
]; ];
};
} }

View file

@ -12,25 +12,20 @@
truncate-lines nil truncate-lines nil
truncate-partial-width-windows nil) truncate-partial-width-windows nil)
(defun my/set-frame-alpha () (set-frame-parameter nil 'alpha-background 80))
(menu-bar-mode -1) (menu-bar-mode -1)
(tab-bar-mode -1) (tab-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
(add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font-12"))
(line-number-mode) (line-number-mode)
(global-display-line-numbers-mode -1) (global-display-line-numbers-mode -1)
(global-prettify-symbols-mode +1) (global-prettify-symbols-mode +1)
(global-visual-line-mode +1) (global-visual-line-mode +1)
(set-frame-parameter nil 'alpha-background 80) ;; (set-frame-font "FiraCode Nerd Font-12")
(add-hook 'server-after-make-frame-hook (lambda () (set-frame-parameter nil 'alpha-background 80))) ;; (set-frame-parameter nil 'alpha-background 80)
(when (require 'doom-themes nil :noerror)
(load-theme 'doom-tokyo-night t))
;; Nerd-Icons modes ;; Nerd-Icons modes
(when (require 'nerd-icons) (when (require 'nerd-icons)
(nerd-icons-set-font "Symbols Nerd Font Mono")
(when (require 'nerd-icons-dired nil :noerror) (when (require 'nerd-icons-dired nil :noerror)
(add-hook 'dired-mode-hook #'nerd-icons-dired-mode)) (add-hook 'dired-mode-hook #'nerd-icons-dired-mode))
@ -87,6 +82,9 @@
(add-hook 'dashboard-mode-hook #'khalel-import-events)) (add-hook 'dashboard-mode-hook #'khalel-import-events))
;; Extra minor-modes ;; Extra minor-modes
(when (require 'git-gutter nil :noerror)
(global-git-gutter-mode +1))
(when (require 'which-key nil :noerror) (when (require 'which-key nil :noerror)
(which-key-mode +1)) (which-key-mode +1))

View file

@ -1,21 +1,16 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
stylix.targets.gtk.enable = false;
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = { cursorTheme = {
package = pkgs.volantes-cursors; package = pkgs.catppuccin-cursors.macchiatoDark;
name = "volantes_cursors"; name = "Catppuccin-Macchiato-Dark-Cursors";
}; };
iconTheme = { iconTheme = {
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
name = "Papirus-Dark"; name = "Papirus-Dark";
}; };
theme = {
package = pkgs.tokyo-night-gtk;
name = "Tokyonight-Dark-BL";
};
}; };
xdg.configFile."gtklock/config.ini".text = let xdg.configFile."gtklock/config.ini".text = let
powerbar = "${pkgs.gtklock-powerbar-module}/lib/gtklock/powerbar-module.so"; powerbar = "${pkgs.gtklock-powerbar-module}/lib/gtklock/powerbar-module.so";

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./default.nix ./emacs.nix ./chromium.nix ]; imports = [ ./default.nix ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dex dex
mesa mesa

View file

@ -1,95 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
coreutils
fd
ripgrep
imagemagick
languagetool
wordnet
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
((emacsPackagesFor emacs29-pgtk).emacsWithPackages (epkgs:
with epkgs; [
# theme-packages
doom-themes
# completion-packages
cape
consult
corfu
corfu-terminal
embark
embark-consult
marginalia
orderless
vertico
# ide-packages
editorconfig
aggressive-indent
ibuffer-project
treesit-grammars.with-all-grammars
treesit-auto
apheleia
direnv
goto-chg
rainbow-delimiters
yasnippet
yasnippet-snippets
nix-mode
rust-mode
# media-packages
emms
# org-packages
org-roam
org-appear
org-cliplink
org-journal
org-modern
citar
citar-embark
citar-org-roam
khalel
# project-packages
magit
# social-packages
mastodon
# ui-packages
all-the-icons
nerd-icons
nerd-icons-completion
nerd-icons-dired
nerd-icons-ibuffer
page-break-lines
dashboard
doom-modeline
helpful
which-key
link-hint
# writing-packages
pdf-tools
markdown-mode
pandoc-mode
auctex
auctex-latexmk
# email-packages
mu4e
mu4e-alert
# feed-packages
elfeed
elfeed-org
elfeed-webkit
elfeed-tube
elfeed-tube-mpv
]))
];
}