Added home-manager module, minor refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
A nixos module for installing a pre-configured development environment for JMU's CS345
|
A nixos module for installing a pre-configured development environment for JMU's CS345 on NixOS
|
||||||
## Setup
|
## Setup
|
||||||
### Using flakes
|
### Using flakes
|
||||||
Inside your main `flake.nix`
|
Inside your main `flake.nix`
|
||||||
@@ -22,7 +22,9 @@ Inside your main `flake.nix`
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Then, in your `configuraiton.nix` (or whichever nix file you please)
|
For use in home-manager, import `nix-jmu-cs345.homeManagerModules.bernstdh` in your `home.nix` instead.
|
||||||
|
|
||||||
|
Then, in your configuration, enable the environment.
|
||||||
```nix
|
```nix
|
||||||
programs.nix-jmu-cs345.enable = true;
|
programs.nix-jmu-cs345.enable = true;
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ let
|
|||||||
name = "checkstyle-v10.17";
|
name = "checkstyle-v10.17";
|
||||||
src = ../plugins/checkstyle-v10.17;
|
src = ../plugins/checkstyle-v10.17;
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
# A custom derivation of Eclipse with CS345's requirements.
|
# A custom derivation of Eclipse with CS345's requirements.
|
||||||
eclipse-cs345 = eclipseWithPlugins {
|
eclipse-cs345 = eclipseWithPlugins {
|
||||||
eclipse = eclipse-v2024-06;
|
eclipse = eclipse-v2024-06;
|
||||||
@@ -29,8 +30,4 @@ let
|
|||||||
plugins.color-theme
|
plugins.color-theme
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
|
||||||
{
|
|
||||||
inherit eclipse-cs345;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user