Added homeManagerModules

This commit is contained in:
Eclypsed
2025-04-15 21:05:15 -04:00
parent 799493c4ae
commit ee71c7da1c
4 changed files with 52 additions and 14 deletions

View File

@@ -3,7 +3,11 @@
outputs = _: { outputs = _: {
nixosModules = { nixosModules = {
bernstdh = import ./modules; bernstdh = import ./modules/nixos.nix;
};
homeManagerModules = {
bernstdh = import ./modules/homeManager.nix;
}; };
}; };
} }

View File

@@ -1,6 +1,4 @@
{ {
config,
lib,
pkgs, pkgs,
... ...
}: }:
@@ -33,16 +31,6 @@ let
}; };
in in
with lib;
{ {
options.programs.nix-jmu-cs345 = { inherit eclipse-cs345;
enable = mkEnableOption "nix-jmu-cs345";
};
config = mkIf config.programs.nix-jmu-cs345.enable {
environment.systemPackages = with pkgs; [
jdk21_headless
eclipse-cs345
];
};
} }

23
modules/homeManager.nix Normal file
View File

@@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}:
let
eclipse = import ./eclipse.nix { inherit pkgs; };
inherit (eclipse) eclipse-cs345;
in
with lib;
{
options.programs.nix-jmu-cs345 = {
enable = mkEnableOption "nix-jmu-cs345";
};
config = mkIf config.programs.nix-jmu-cs345.enable {
home.packages = with pkgs; [
jdk21_headless
eclipse-cs345
];
};
}

23
modules/nixos.nix Normal file
View File

@@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}:
let
eclipse = import ./eclipse.nix { inherit pkgs; };
inherit (eclipse) eclipse-cs345;
in
with lib;
{
options.programs.nix-jmu-cs345 = {
enable = mkEnableOption "nix-jmu-cs345";
};
config = mkIf config.programs.nix-jmu-cs345.enable {
environment.systemPackages = with pkgs; [
jdk21_headless
eclipse-cs345
];
};
}