Commit 0cc4396

HPCesia <me@hpcesia.com>
2025-09-30 16:45:52
refactor: migrate editor config
1 parent 92771c3
Changed files (4)
home
base
core
modules
os-modules
home/base/core/editors/helix/default.nix
@@ -1,5 +0,0 @@
-{...}: {
-  programs.helix = {
-    enable = true;
-  };
-}
home/base/core/editors/default.nix
@@ -1,3 +0,0 @@
-{mylib, ...}: {
-  imports = mylib.scanModules ./.;
-}
modules/core/editors.nix
@@ -0,0 +1,12 @@
+{
+  flake.modules.nixos.core = {pkgs, ...}: {
+    environment.variables.EDITOR = "hx";
+    environment.systemPackages = [pkgs.helix];
+  };
+
+  flake.modules.homeManager.core = _: {
+    programs.helix = {
+      enable = true;
+    };
+  };
+}
os-modules/base/system-packages.nix
@@ -3,10 +3,8 @@
   config,
   ...
 }: {
-  environment.variables.EDITOR = "hx";
   environment.systemPackages = with pkgs; [
     fastfetch
-    helix
     nushell
     git