summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-09-13 20:09:29 -0300
committerLeonardo Santiago <[email protected]>2024-09-13 20:09:29 -0300
commit58e4b197de4050098569fb7146fa3a726840f8d5 (patch)
treef867427118cb2af7df5a62af9aecf7c71a22d041 /modules
parent62100c9265a4de389d1ea8060cbddddacde161a7 (diff)
more stuff
Diffstat (limited to 'modules')
-rw-r--r--modules/default-user.nix7
-rw-r--r--modules/emacs/README.org14
2 files changed, 15 insertions, 6 deletions
diff --git a/modules/default-user.nix b/modules/default-user.nix
index 189c354..53cef7d 100644
--- a/modules/default-user.nix
+++ b/modules/default-user.nix
@@ -35,8 +35,11 @@ in {
};
in {
user-pass = with-perms "user-pass";
- user-ssh-key = (with-perms "user-ssh-key") // {
+ user-ssh-key = {
+ file = ../secrets/user-ssh-key.age;
path = "/home/leonardo/.ssh/id_ed25519";
+ owner = "leonardo";
+ group = "users";
};
} // (optionalAttrs cfg.mu.enable (let
mails = ["work-mail" "personal-mail" "university-mail"];
@@ -62,8 +65,10 @@ in {
imports = [ (import ./gnome/gnome-config.nix config.santi-modules) ];
home = {
stateVersion = "23.05";
+ homeDirectory = "/home/leonardo";
file.".ssh/id_ed25519.pub".source = ../secrets/user-ssh-key.pub;
file.".mozilla/firefox/leonardo/chrome/firefox-gnome-theme" = mkIf cfg.firefox.enable { source = inputs.firefox-gnome-theme; };
+
packages = lib.optionals cfg.desktop-environment.enable (with pkgs; [
discord
slack
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index 81c0775..432d498 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -74,14 +74,18 @@ Configuration to automagically open age files, and to encrypt them correctly to
:config
(age-file-enable))
#+end_src
-** All the Icons
+** Nerd icons
#+begin_src emacs-lisp :tangle yes
-(use-package all-the-icons)
+(use-package nerd-icons
+ :custom
+ (nerd-icons-font-family "Iosevka Nerd Font"))
-(use-package all-the-icons-completion
- :after all-the-icons
+(use-package nerd-icons-completion
+ :after nerd-icons
:after marginalia
- :hook (marginalia-mode . all-the-icons-completion-mode))
+ :hook (marginalia-mode . nerd-icons-completion-marginal)
+ :config
+ (nerd-icons-completion-mode))
#+end_src
** Direnv
To integrate with nix shells.