summary refs log tree commit diff
path: root/mixins/emacs
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-03-30 10:46:52 +0300
committertzlil <tzlils@protonmail.com>2023-03-30 10:46:52 +0300
commitfbbd1a6ee7cb8f4a221b9ec77f714778eb4ae7f4 (patch)
treefa37905011a2402f1787831043fe2180269607f0 /mixins/emacs
parentf93700b22836af7e92108c697f4638bca433b87e (diff)
cleanup, fmt, work on emacs, start hydrus booru integration
Diffstat (limited to 'mixins/emacs')
-rw-r--r--mixins/emacs/default.nix59
1 files changed, 34 insertions, 25 deletions
diff --git a/mixins/emacs/default.nix b/mixins/emacs/default.nix
index 0290d20..7303ebb 100644
--- a/mixins/emacs/default.nix
+++ b/mixins/emacs/default.nix
@@ -5,29 +5,38 @@
   inputs,
   ...
 }: {
-  #   imports = [
-  #     inputs.home-manager.nixosModules."home-manager"
-  #   ];
-  #   config = {
-  #     home-manager.users.tzlil = {
-  #       pkgs,
-  #       config,
-  #       nixosConfig,
-  #       ...
-  #     } @ hm: {
-  #       home = {
-  #         packages = with pkgs; [
-
-  #         ];
-  #       };
-  #       services.emacs = {
-  #         enable = true;
-  #         defaultEditor = true;
-  #       };
-  #       programs.emacs = {
-  #         enable = true;
-  #         extraConfig = builtins.readFile ./init.el
-  #       };
-  #     };
-  #   }
+  imports = [
+    inputs.home-manager.nixosModules."home-manager"
+  ];
+  config = {
+    home-manager.users.tzlil = {
+      pkgs,
+      config,
+      nixosConfig,
+      ...
+    } @ hm: {
+      home = {
+        packages = with pkgs; [
+        ];
+      };
+      services.emacs = {
+        enable = true;
+        defaultEditor = true;
+        startWithUserSession = true;
+        client.enable = true;
+        package = with pkgs; (emacsWithPackages (with emacsPackagesNg; [
+          evil
+          nix-mode
+          org
+          python-mode
+        ]));
+      };
+      # xdg.configFile."emacs/init.el".text = builtins.readFile ./init.el;
+      # non client
+      programs.emacs = {
+        enable = true;
+        extraConfig = builtins.readFile ./init.el;
+      };
+    };
+  };
 }