refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
17
modules/nixos/tools/fup-repl/default.nix
Normal file
17
modules/nixos/tools/fup-repl/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let
|
||||
cfg = config.plusultra.tools.fup-repl;
|
||||
fup-repl = pkgs.writeShellScriptBin "fup-repl" ''
|
||||
${pkgs.fup-repl}/bin/repl ''${@}
|
||||
'';
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.fup-repl = with types; {
|
||||
enable = mkBoolOpt false "Whether to enable fup-repl or not";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable { environment.systemPackages = [ fup-repl ]; };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue