refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
25
modules/nixos/tools/titan/default.nix
Normal file
25
modules/nixos/tools/titan/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ options, config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let
|
||||
cfg = config.plusultra.tools.titan;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.titan = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to install Titan.";
|
||||
pkg = mkOpt package pkgs.plusultra.titan "The package to install as Titan.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
plusultra.tools = {
|
||||
# Titan depends on Node and Git
|
||||
node = enabled;
|
||||
git = enabled;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
cfg.pkg
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue