init
This commit is contained in:
commit
f15932fc62
10 changed files with 303 additions and 0 deletions
22
module.nix
Normal file
22
module.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
services.math-project = {
|
||||
enable = lib.mkEnableOption "math project";
|
||||
package = lib.mkOption {
|
||||
description = "math project package";
|
||||
default = pkgs.callPackage ./package.nix {};
|
||||
type = lib.types.package;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.services.math-project.enable {
|
||||
environment.systemPackages = [
|
||||
config.services.math-project.package
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue