nix-script: remove
This commit is contained in:
parent
7941b13682
commit
ae58eb80d2
3 changed files with 0 additions and 315 deletions
|
|
@ -1,47 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.programs.nix-script;
|
||||
|
||||
nix-script = pkgs.substituteAll {
|
||||
inherit (cfg) name;
|
||||
src = ../../pkgs/nix-tools/nix-script.sh;
|
||||
dir = "bin";
|
||||
isExecutable = true;
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
|
||||
programs.nix-script.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable the nix script.
|
||||
'';
|
||||
};
|
||||
|
||||
programs.nix-script.name = mkOption {
|
||||
type = types.str;
|
||||
default = "nix";
|
||||
description = ''
|
||||
Name to use for the nix script.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages =
|
||||
[ # Nix wrapper script
|
||||
nix-script
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue