Added homeManagerModules
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
@@ -33,16 +31,6 @@ let
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
};
|
||||
inherit eclipse-cs345;
|
||||
}
|
||||
23
modules/homeManager.nix
Normal file
23
modules/homeManager.nix
Normal 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
23
modules/nixos.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user