2024-10-30 08:06:52 +00:00
|
|
|
{
|
|
|
|
nixos-config,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-11-03 11:47:17 +00:00
|
|
|
nixpkgs,
|
2024-10-30 08:06:52 +00:00
|
|
|
...
|
2024-11-09 14:02:26 +00:00
|
|
|
}:
|
|
|
|
{
|
2024-10-30 08:06:52 +00:00
|
|
|
networking.hostName = "not522-installer";
|
|
|
|
imports = [
|
|
|
|
"${nixos-config}/config"
|
|
|
|
"${nixos-config}/machine/not522/hardware.nix"
|
|
|
|
"${nixos-config}/machine/not522/cross-packages.nix"
|
|
|
|
./disko.nix
|
2024-11-03 11:47:17 +00:00
|
|
|
"${nixpkgs}/nixos/modules/profiles/minimal.nix"
|
2024-10-30 08:06:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = config.system.nixos.version;
|
|
|
|
|
2024-11-15 09:23:02 +00:00
|
|
|
#environment.etc."system/not522".source = "${nixos-config.nixosConfigurations.not522.config.system.build.toplevel}";
|
|
|
|
#environment.etc."system/not522-disko".source = "${nixos-config.nixosConfigurations.not522.config.system.build.diskoScript}";
|
2024-10-30 08:06:52 +00:00
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.writeShellScriptBin "install-nixos-unattended" ''
|
|
|
|
set -eux
|
|
|
|
exec ${pkgs.disko}/bin/disko-install --flake "${nixos-config}#not522" --disk main "${nixos-config.nixosConfigurations.not522.config.disko.devices.disk.main.device}"
|
|
|
|
'')
|
|
|
|
];
|
2024-11-06 08:05:41 +00:00
|
|
|
isInstaller = true;
|
2024-10-30 08:06:52 +00:00
|
|
|
}
|