about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-04-01 14:55:28 +0300
committerAzat Bahawi <azat@bahawi.net>2024-04-01 14:55:28 +0300
commit52cecdc9238eb8e5fea8c348ec03d5b6607782e4 (patch)
treeb82d8dd0fa3ea287521a749e97e49287e3489151
parent2024-03-31 (diff)
2024-04-01
-rw-r--r--modules/common/emacs/default.nix3
-rw-r--r--modules/common/emacs/doom/config.el8
-rw-r--r--modules/common/emacs/doom/packages.el5
3 files changed, 15 insertions, 1 deletions
diff --git a/modules/common/emacs/default.nix b/modules/common/emacs/default.nix
index 2d0fe67..6bbba38 100644
--- a/modules/common/emacs/default.nix
+++ b/modules/common/emacs/default.nix
@@ -57,7 +57,7 @@ in
                   fi
 
                   PATH="''${PATH:-/bin:/usr/bin:/usr/local/bin}:${emacs.package}/bin:${git.package}/bin" \
-                    "$EMACSDIR/bin/doom" sync -e -p --force --verbose
+                    "$EMACSDIR/bin/doom" sync -e --gc --force --verbose
                 fi
               '';
             }
@@ -144,6 +144,7 @@ in
                         rustfmt # :lang rust
                         shellcheck # :lang sh
                         shfmt # :lang sh :editor format
+                        sops
                         sqlite # :lang (org +roam2) :tools lookup
                         terraform-ls # :tools (terraform +lsp)
                         texlab # lang (tex +lsp)
diff --git a/modules/common/emacs/doom/config.el b/modules/common/emacs/doom/config.el
index 7f5693c..ac2578e 100644
--- a/modules/common/emacs/doom/config.el
+++ b/modules/common/emacs/doom/config.el
@@ -201,6 +201,14 @@
               '("libera" "oftc" "hackint" "rizon")))
 
 ;;
+;;; Sops
+;;
+
+(use-package! sops
+  :config
+  (global-sops-mode 1))
+
+;;
 ;;; Hledger
 ;;
 
diff --git a/modules/common/emacs/doom/packages.el b/modules/common/emacs/doom/packages.el
index 80490de..2ed0e4c 100644
--- a/modules/common/emacs/doom/packages.el
+++ b/modules/common/emacs/doom/packages.el
@@ -5,3 +5,8 @@
 (package! nickel-mode)
 
 (package! hledger-mode)
+
+(package! sops
+  :recipe (:type git
+           :host github
+           :repo "djgoku/sops"))

Consider giving Nix/NixOS a try! <3