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:
parent
9294ce5626
commit
b14a2991b2
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,50 +111,57 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
home.packages = with pkgs; [
|
||||||
packages = with pkgs; [
|
# Emacs requirements
|
||||||
# Language-specific requirements
|
coreutils
|
||||||
sqlite
|
fd
|
||||||
pandoc
|
ripgrep
|
||||||
gfortran
|
imagemagick
|
||||||
rustup
|
languagetool
|
||||||
texlive.combined.scheme-full
|
wordnet
|
||||||
ghostscript
|
(aspellWithDicts (ds: with ds; [ en en-computers en-science ]))
|
||||||
mupdf
|
|
||||||
(python3.withPackages
|
|
||||||
(ps: with ps; [ python-lsp-server python-lsp-ruff pylsp-mypy ]))
|
|
||||||
|
|
||||||
# Linters
|
# Language-specific requirements
|
||||||
nodePackages.stylelint
|
sqlite
|
||||||
|
pandoc
|
||||||
|
gfortran
|
||||||
|
rustup
|
||||||
|
texlive.combined.scheme-full
|
||||||
|
ghostscript
|
||||||
|
mupdf
|
||||||
|
(python3.withPackages
|
||||||
|
(ps: with ps; [ python-lsp-server python-lsp-ruff pylsp-mypy ]))
|
||||||
|
|
||||||
# Formatters
|
# Linters
|
||||||
nixfmt
|
nodePackages.stylelint
|
||||||
beautysh
|
|
||||||
black
|
|
||||||
isort
|
|
||||||
nodePackages.fixjson
|
|
||||||
fprettify
|
|
||||||
shellharden
|
|
||||||
shfmt
|
|
||||||
stylua
|
|
||||||
python3Packages.mdformat
|
|
||||||
html-tidy
|
|
||||||
nodePackages.js-beautify
|
|
||||||
|
|
||||||
# LSP Servers
|
# Formatters
|
||||||
nixd
|
nixfmt
|
||||||
fortls
|
beautysh
|
||||||
shellcheck
|
black
|
||||||
marksman
|
isort
|
||||||
luajitPackages.lua-lsp
|
nodePackages.fixjson
|
||||||
# nodePackages.pyright
|
fprettify
|
||||||
nodePackages.yaml-language-server
|
shellharden
|
||||||
nodePackages.bash-language-server
|
shfmt
|
||||||
nodePackages.javascript-typescript-langserver
|
stylua
|
||||||
nodePackages.vscode-html-languageserver-bin
|
python3Packages.mdformat
|
||||||
nodePackages.vscode-css-languageserver-bin
|
html-tidy
|
||||||
nodePackages.vscode-json-languageserver-bin
|
nodePackages.js-beautify
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
|
||||||
];
|
# LSP Servers
|
||||||
};
|
nixd
|
||||||
|
fortls
|
||||||
|
shellcheck
|
||||||
|
marksman
|
||||||
|
luajitPackages.lua-lsp
|
||||||
|
# nodePackages.pyright
|
||||||
|
nodePackages.yaml-language-server
|
||||||
|
nodePackages.bash-language-server
|
||||||
|
nodePackages.javascript-typescript-langserver
|
||||||
|
nodePackages.vscode-html-languageserver-bin
|
||||||
|
nodePackages.vscode-css-languageserver-bin
|
||||||
|
nodePackages.vscode-json-languageserver-bin
|
||||||
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
]))
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Reference in a new issue