nixos-anywhere/tests/modules/installer.nix

23 lines
643 B
Nix
Raw Normal View History

2023-11-28 17:41:58 +03:00
{ pkgs, inputs, ... }:
let
disko = inputs.disko;
kexec-installer = inputs.kexec-installer;
system-to-install = pkgs.nixos [
./system-to-install.nix
disko
];
in
{
system.activationScripts.rsa-key = ''
${pkgs.coreutils}/bin/install -D -m600 ${./ssh-keys/ssh} /root/.ssh/install_key
'';
2023-02-01 21:49:46 +03:00
environment.systemPackages = [ inputs.nixos-anywhere ];
environment.etc = {
"nixos-anywhere/disko".source = system-to-install.config.system.build.diskoScript;
2023-02-01 21:49:46 +03:00
"nixos-anywhere/system-to-install".source = system-to-install.config.system.build.toplevel;
"nixos-anywhere/kexec-installer".source = kexec-installer;
};
}