Merge branch 'master' of git.2li.ch:Nebucatnetzer/nixos

This commit is contained in:
Andreas Zweili 2023-12-13 19:36:32 +01:00
commit a62e5a8916
13 changed files with 28 additions and 4 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "home-manager/modules/programs/emacs/emacs.d/lib/copilot"]
path = home-manager/modules/programs/emacs/emacs.d/lib/copilot
url = https://github.com/zerolfx/copilot.el.git

View File

@ -9,6 +9,7 @@
./programs/email
./programs/evince
./programs/git
./programs/hunspell
./programs/keeweb
./programs/mpv
./programs/open-port

View File

@ -11,6 +11,7 @@ in
home.packages = with pkgs; [
fd
multimarkdown
nodejs_20 # required for copilot
unstable.nixd # Nix language server
pandoc
ripgrep

View File

@ -0,0 +1,17 @@
(use-package dash
:defer t)
(use-package editorconfig
:defer t)
(use-package s
:defer t)
(use-package copilot
:load-path "~/.nixos/home-manager/modules/programs/emacs/emacs.d/lib/copilot"
:config
(add-hook 'prog-mode-hook 'copilot-mode)
(add-hook 'yaml-mode-hook 'copilot-mode)
(add-to-list 'copilot-disable-display-predicates #'company--active-p)
(define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion)
(define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion))

@ -0,0 +1 @@
Subproject commit ba1d6018fdc2d735fecab1b2dcd4b5ea121b05ac

View File

@ -31,6 +31,7 @@
;; programming
(load-file (modules-path "az_annotate.el"))
(load-file (modules-path "az_company.el"))
(load-file (modules-path "az_copilot.el"))
(load-file (modules-path "az_direnv.el"))
(load-file (modules-path "az_format_all.el"))
(load-file (modules-path "az_flycheck.el"))

View File

@ -8,7 +8,7 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
home.packages = with pkgs; [
hunspell
hunspellDicts.en_GB-ise
hunspellDicts.de_CH

View File

@ -14,6 +14,7 @@ in
az-emacs.enable = true;
az-email.enable = true;
az-evince.enable = true;
az-hunspell.enable = true;
az-keeweb.enable = true;
az-mpv.enable = true;
az-open-port.enable = true;

View File

@ -13,6 +13,7 @@
programs = {
az-emacs.enable = true;
az-hunspell.enable = true;
az-open-port.enable = true;
az-ssh.enable = true;
az-tmux.enable = true;

View File

@ -49,6 +49,7 @@
az-git = {
userEmail = "zweili@contria.com";
};
az-hunspell.enable = true;
az-tmux.enable = true;
az-vagrant-wsl.enable = true;
bash = {

View File

@ -10,7 +10,6 @@
./profiles/desktop
./programs/distrobox
./programs/eog
./programs/hunspell
./programs/libimobiledevice
./programs/lockscreen
./programs/makemkv

View File

@ -73,7 +73,6 @@ in
programs = {
az-eog.enable = true; # Gnome Image Viewer
az-hunspell.enable = true; # Enable dictionaries
az-idevices.enable = true;
az-nautilus.enable = true;
az-nix-direnv.enable = true;

View File

@ -21,7 +21,6 @@
};
# Enable dictionaries
programs = {
az-hunspell.enable = true;
az-nix-direnv.enable = true;
az-restic-management.enable = true;
};