blob: 4898557a8078594e5e8b84236b926f4d7c1daf7f (
plain) (
tree)
|
|
{
pkgs,
sysLib,
...
}: let
ensure_config_variables_dependencies = builtins.attrValues {inherit (pkgs) systemd jq dash gnugrep curl;};
replacementStrings = {SCRIPT_ENSURE_CONFIG_VARIABLES = "${ensure_config_variables}/bin/ensure_config_variables";};
activate = sysLib.writeShellScriptWithLibrary {
dependencies = builtins.attrValues {inherit (pkgs) jq gawk curl coreutils libuuid nix git;} ++ ensure_config_variables_dependencies;
name = "activate";
src = ./01_activate;
inherit replacementStrings;
};
install = sysLib.writeShellScriptWithLibrary {
dependencies = builtins.attrValues {inherit (pkgs) jq dash curl gawk btrfs-progs coreutils libuuid gptfdisk dosfstools toybox nix git;} ++ ensure_config_variables_dependencies;
name = "install";
src = ./01_install;
inherit replacementStrings;
};
setup = sysLib.writeShellScriptWithLibrary {
dependencies = builtins.attrValues {inherit (pkgs) dash gawk curl git nix gnugrep nixos-install-tools coreutils libuuid;} ++ ensure_config_variables_dependencies;
name = "setup";
src = ./02_setup;
inherit replacementStrings;
};
config_setup = sysLib.writeShellScriptWithLibraryAndKeepPath {
dependencies = builtins.attrValues {inherit (pkgs) git neovim;} ++ ensure_config_variables_dependencies;
name = "config_setup";
src = ./03_config_setup;
inherit replacementStrings;
};
ensure_config_variables = sysLib.writeShellScriptWithLibraryUnwrapped {
name = "ensure_config_variables";
src = ./99_ensure_config_variables;
};
output = {inherit activate install setup config_setup ensure_config_variables;};
in
output
|