summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/emacs/README.org55
-rw-r--r--modules/emacs/emacs.nix1
-rw-r--r--modules/gnome-config.nix1
-rw-r--r--modules/gnome.nix13
4 files changed, 42 insertions, 28 deletions
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index ff818f4..9ca23c1 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -49,6 +49,30 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
#+end_src
* Utility
+** Age encryption
+Configuration to automagically open age files, and to encrypt them correctly to all my machines.
+#+begin_src emacs-lisp :tangle yes
+(use-package age
+ :ensure t
+ :demand t
+ :custom
+ (age-program "rage")
+ (age-default-identity "~/.ssh/leonardo")
+ (age-default-recipient
+ '("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWxS8tdN3j7Vm337RmJTzYTMbkAZN5g610ZesH4vhd8"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrMCLu3VvQVmd2cqreAJsVKkrtKXqgzO8i8NDm06ysm"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFQN59YDFwwQt/1rb1dHZnxsNV2geWUvHyTKqjdSA52"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINKjyS7vbCxr7oDqBpnhHQQzolAW6Fqt1FTOo+hT+lSC"))
+ :config
+ (age-file-enable))
+#+end_src
+** Flyspell
+#+begin_src emacs-lisp :tangle yes
+(use-package flyspell
+ :hook (org-mode . flyspell-mode)
+ :custom
+ (ispell-program-name "aspell"))
+#+end_src
** All the Icons
Works through nixosModules.
#+begin_src emacs-lisp :tangle yes
@@ -257,6 +281,8 @@ Try to use the package.
:hook (org-mode . org-indent-mode)
:bind ("C-c a" . org-agenda)
:config
+ (add-to-list 'org-src-lang-modes '("rust" . rust-ts))
+ (add-to-list 'org-src-lang-modes '("python" . python-ts))
(custom-set-faces
'(org-headline-done
((((class color) (min-colors 16) (background dark))
@@ -274,36 +300,9 @@ Try to use the package.
(org-indirect-buffer-display 'other-window)
(org-confirm-babel-evaluate nil)
(org-edit-src-content-indentation 0)
- (org-auto-align-tags nil)
+ (org-auto-align-tags t)
(org-fontify-done-headline t))
#+end_src
-*** Org Modern
-#+begin_src emacs-lisp :tangle yes
-(defun bg (color)
- `(:background ,color :inherit (org-todo org-modern-label) :foreground "gray25"))
-
-(use-package org-modern
- :after org
- :hook (org-mode . org-modern-mode)
- :hook (org-agenda-finalize . org-modern-agenda)
- :custom
- (org-modern-todo-faces
- `(("IDEA" . ,(bg "yellow"))
- ("TODO" . org-modern-todo)
- ("STUCK" . ,(bg "brown"))
- ("DOING" . ,(bg "green"))
- ("DONE" . org-modern-done)
- ; work tasks
- ("ASSIGNED" . org-modern-todo)
- ("WORKING" . ,(bg "green yellow"))
- ("ON REVIEW" . ,(bg "sandy brown"))
- ("MERGED" . org-modern-done)
- ("CANCELLED" . ,(bg "OrangeRed1"))
- ; one time tasks
- ("EVENT" . ,(bg "deep sky blue"))
- ("DONE" . org-modern-done)))
- (org-modern-priority t))
-#+end_src
*** Org Agenda
#+begin_src emacs-lisp :tangle yes
(setq
diff --git a/modules/emacs/emacs.nix b/modules/emacs/emacs.nix
index a43e38b..a4e1722 100644
--- a/modules/emacs/emacs.nix
+++ b/modules/emacs/emacs.nix
@@ -44,6 +44,7 @@ in
nixpkgs.overlays = [ inputs.emacs-overlay.overlays.default ];
environment.systemPackages = [
emacs
+ (pkgs.aspellWithDicts (dicts: with dicts; [ pt_BR en en-computers ]))
] ++ outside-emacs;
fonts.packages = with pkgs; [
emacs-all-the-icons-fonts
diff --git a/modules/gnome-config.nix b/modules/gnome-config.nix
index 4d3af54..38a812d 100644
--- a/modules/gnome-config.nix
+++ b/modules/gnome-config.nix
@@ -38,6 +38,7 @@
];
disabled-extensions= [
diff --git a/modules/gnome.nix b/modules/gnome.nix
index 2142450..386cb94 100644
--- a/modules/gnome.nix
+++ b/modules/gnome.nix
@@ -26,8 +26,21 @@
user-themes
graphite-gtk-theme
x11-gestures
+ gsconnect
]);
+
+ # gsconnect specific
+ programs.firefox.nativeMessagingHosts.gsconnect.enable = true;
+ networking.firewall.allowedTCPPortRanges = [
+ # KDE Connect
+ { from = 1714; to = 1764; }
+ ];
+ networking.firewall.allowedUDPPortRanges = [
+ # KDE Connect
+ { from = 1714; to = 1764; }
+ ];
+
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour