Only set pgtk version of emacs in hyprland expression

This commit is contained in:
Evie Litherland-Smith 2023-08-28 12:48:56 +01:00
parent c74c937932
commit d3c55cc9f8
4 changed files with 62 additions and 68 deletions

View file

@ -1,9 +1,59 @@
{ pkgs, ... }: { pkgs, ... }:
let package = pkgs.emacs29-pgtk;
in { {
imports = [ ./dependencies.nix ]; programs.emacs.enable = true;
programs.emacs = { home.packages = with pkgs; [
inherit package; # Emacs dependencies
enable = true; git
}; ripgrep
coreutils
cmake
fd
graphviz
# Mail server setup
isync
mu
protonmail-bridge
# Language-specific requirements
ispell
findutils
sqlite
pandoc
gfortran
texlive.combined.scheme-medium
# Formatters
nixfmt
beautysh
nodePackages.fixjson
fprettify
shellharden
stylua
python3Packages.mdformat
# LSP servers
nil
fortls
(python3.withPackages (ps:
with ps; [
python-lsp-server
python-lsp-ruff
python-lsp-black
pyls-isort
pylsp-rope
pylsp-mypy
]))
nodePackages.yaml-language-server
nodePackages.bash-language-server
nodePackages.vscode-html-languageserver-bin
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs
shellcheck
marksman
luajitPackages.lua-lsp
texlab
];
} }

View file

@ -1,58 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
# Emacs dependencies
git
ripgrep
coreutils
cmake
fd
graphviz
# Mail server setup
isync
mu
protonmail-bridge
# Language-specific requirements
ispell
findutils
sqlite
pandoc
gfortran
texlive.combined.scheme-medium
# Formatters
nixfmt
beautysh
nodePackages.fixjson
fprettify
shellharden
stylua
python3Packages.mdformat
# LSP servers
nil
fortls
(python3.withPackages (ps:
with ps; [
python-lsp-server
python-lsp-ruff
python-lsp-black
pyls-isort
pylsp-rope
pylsp-mypy
]))
nodePackages.yaml-language-server
nodePackages.bash-language-server
nodePackages.vscode-html-languageserver-bin
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs
shellcheck
marksman
luajitPackages.lua-lsp
texlab
];
}

View file

@ -31,6 +31,7 @@ in {
]; ];
home.packages = with pkgs; [ libsForQt5.polkit-kde-agent configure-gtk ]; home.packages = with pkgs; [ libsForQt5.polkit-kde-agent configure-gtk ];
programs = { programs = {
emacs.package = pkgs.emacs29-pgtk;
password-store.package = pkgs.pass-wayland; password-store.package = pkgs.pass-wayland;
firefox.package = pkgs.firefox-wayland; firefox.package = pkgs.firefox-wayland;
rofi = { rofi = {

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { lib, pkgs, ... }:
let let
username = "tux"; username = "tux";
homeDirectory = "/Users/${username}"; homeDirectory = "/Users/${username}";
@ -9,12 +9,12 @@ in {
../../home/ssh ../../home/ssh
../../home/tui ../../home/tui
../../home/alacritty ../../home/alacritty
../../home/emacs/dependencies.nix ../../home/emacs
]; ];
home = { home = {
inherit username homeDirectory; inherit username homeDirectory;
stateVersion = "23.05"; stateVersion = "23.05";
packages = with pkgs; [ emacs28NativeComp coreutils-prefixed ]; packages = with pkgs; [ coreutils-prefixed ];
}; };
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
@ -24,6 +24,7 @@ in {
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
''; '';
}; };
emacs.package = pkgs.emacs29;
}; };
services.syncthing.enable = true; services.syncthing.enable = true;
} }