diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/default-user.nix | 6 | ||||
-rw-r--r-- | modules/desktop-environment.nix | 2 | ||||
-rw-r--r-- | modules/emacs/README.org | 5 |
3 files changed, 9 insertions, 4 deletions
diff --git a/modules/default-user.nix b/modules/default-user.nix index 53cef7d..9caa454 100644 --- a/modules/default-user.nix +++ b/modules/default-user.nix @@ -46,9 +46,11 @@ in { mail-cfg = map (n: {name = n; value = with-perms n;}) mails; in listToAttrs mail-cfg)) - // (optionalAttrs cfg.services.ddns.enable ({ + // (optionalAttrs cfg.services.ddns.enable { cloudflare = with-perms "cloudflare"; - })); + }) // (optionalAttrs cfg.emacs.enable { + authinfo = with-perms "authinfo"; + }); programs.ssh.startAgent = true; services.openssh = { enable = true; diff --git a/modules/desktop-environment.nix b/modules/desktop-environment.nix index c9408d9..14dd7d6 100644 --- a/modules/desktop-environment.nix +++ b/modules/desktop-environment.nix @@ -12,7 +12,7 @@ basic.enable = true; }; - services.printing.enable = true; + services.printing.enable = false; # disabled until CUPS CVE is fixed hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { diff --git a/modules/emacs/README.org b/modules/emacs/README.org index 2d2acc9..cb7c4da 100644 --- a/modules/emacs/README.org +++ b/modules/emacs/README.org @@ -31,7 +31,7 @@ You can also use it as a ~nixosModule~, in order to add additional packages like #+begin_src emacs-lisp :tangle yes (use-package modus-themes) ;; (use-package kanagawa-theme) -(load-theme 'tango t) +(load-theme 'wheatgrass t) (add-hook 'after-make-frame-functions (lambda (frame) @@ -394,8 +394,10 @@ Actual mu4e definition #+begin_src emacs-lisp :tangle yes (use-package mu4e :bind ("C-c m" . mu4e) + :config :custom (read-mail-command 'mu4e) + (mu4e-sent-messages-behavior 'delete) (mu4e-index-cleanup nil) (mu4e-index-lazy-check t) (mu4e-use-fancy-chars (display-graphic-p)) @@ -431,6 +433,7 @@ Actual mu4e definition ((university-p msg) "/university/[Gmail]/Lixeira") ((work-p msg) "/work/[Gmail]/Trash")))) :config + (add-hook 'mu4e-compose-mode-hook #'(lambda () (auto-save-mode -1))) (add-to-list 'display-buffer-alist `( ,(regexp-quote mu4e-main-buffer-name) display-buffer-same-window)) ; to avoid opening in full frame everytime. |