diff options
author | Soispha <soispha@vhack.eu> | 2023-07-01 18:45:39 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-10 16:44:12 +0200 |
commit | c3d2c88eed96b82fa8e83e8b6ee53c414a0e4431 (patch) | |
tree | a5a9553ba5cbf5b6095ae575ecca27356b73c96d /bootstrap/default.nix | |
parent | Feat(system/disks): Add luks partition (diff) | |
download | nixos-config-c3d2c88eed96b82fa8e83e8b6ee53c414a0e4431.tar.gz nixos-config-c3d2c88eed96b82fa8e83e8b6ee53c414a0e4431.zip |
Refactor(bootstrap): Use disko
Diffstat (limited to 'bootstrap/default.nix')
-rw-r--r-- | bootstrap/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bootstrap/default.nix b/bootstrap/default.nix new file mode 100644 index 00000000..60c72e6a --- /dev/null +++ b/bootstrap/default.nix @@ -0,0 +1,39 @@ +{ + pkgs, + sysLib, + ... +}: let + activate = sysLib.writeShellScriptWithLibrary { + dependencies = builtins.attrValues {inherit (pkgs) jq gawk curl coreutils libuuid nix git;}; + name = "activate"; + src = ./01_activate.sh; + replacementStrings = {SCRIPT_ENSURE_CONFIG_VARIABLES = "${ensure_config_variables}";}; + }; + install = sysLib.writeShellScriptWithLibrary { + dependencies = builtins.attrValues {inherit (pkgs) jq dash curl gawk btrfs-progs coreutils libuuid gptfdisk dosfstools toybox nix git;}; + name = "install"; + src = ./01_install.sh; + replacementStrings = {SCRIPT_ENSURE_CONFIG_VARIABLES = "${ensure_config_variables}";}; + }; + setup = sysLib.writeShellScriptWithLibrary { + dependencies = builtins.attrValues {inherit (pkgs) dash gawk curl git nix gnugrep nixos-install-tools coreutils libuuid;}; + name = "setup"; + src = ./02_setup.sh; + replacementStrings = {SCRIPT_ENSURE_CONFIG_VARIABLES = "${ensure_config_variables}";}; + }; + config_setup = sysLib.writeShellScriptWithLibrary { + dependencies = builtins.attrValues {inherit (pkgs) git neovim;}; + name = "config_setup"; + src = ./03_config_setup.sh; + replacementStrings = {SCRIPT_ENSURE_CONFIG_VARIABLES = "${ensure_config_variables}";}; + }; + ensure_config_variables = sysLib.writeShellScriptWithLibrary { + dependencies = builtins.attrValues {inherit (pkgs) jq dash;}; + name = "ensure_config_variables"; + src = ./99_ensure_config_variables.sh; + }; + output = {inherit activate install setup config_setup ensure_config_variables;}; +in + output +# vim: ts=2 + |