Commit 0cc4396
Changed files (4)
home
base
core
editors
helix
modules
core
os-modules
base
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