2024-11-05 08:11:22 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
nixos-config,
|
2024-11-07 09:05:27 +00:00
|
|
|
pkgs,
|
2024-11-05 08:11:22 +00:00
|
|
|
...
|
2024-11-09 14:02:26 +00:00
|
|
|
}:
|
|
|
|
{
|
2024-11-05 08:11:22 +00:00
|
|
|
networking.hostName = "pc-installer";
|
|
|
|
imports = [
|
|
|
|
"${nixos-config}/config"
|
|
|
|
./disko.nix
|
|
|
|
./grub.nix
|
2024-11-05 09:18:46 +00:00
|
|
|
./hardware.nix
|
2024-11-05 12:13:06 +00:00
|
|
|
"${nixos-config}/config/networkmanager.nix"
|
2024-11-05 08:11:22 +00:00
|
|
|
];
|
|
|
|
system.stateVersion = config.system.nixos.version;
|
|
|
|
specialisation.graphical = {
|
|
|
|
configuration.imports = [
|
|
|
|
./graphical.nix
|
2024-11-07 08:08:57 +00:00
|
|
|
"${nixos-config}/config/graphical/plymouth.nix"
|
2024-11-07 09:01:53 +00:00
|
|
|
{
|
|
|
|
nix.auto-update.specialisation = "graphical";
|
|
|
|
}
|
2024-11-05 08:11:22 +00:00
|
|
|
];
|
|
|
|
};
|
2024-11-07 08:04:40 +00:00
|
|
|
specialisation.graphical-verbose = {
|
|
|
|
configuration.imports = [
|
|
|
|
./graphical.nix
|
2024-11-07 09:01:53 +00:00
|
|
|
{
|
|
|
|
nix.auto-update.specialisation = "graphical-verbose";
|
|
|
|
}
|
2024-11-07 08:04:40 +00:00
|
|
|
];
|
|
|
|
};
|
2024-11-06 08:05:41 +00:00
|
|
|
isInstaller = true;
|
2024-11-15 09:23:02 +00:00
|
|
|
/*
|
|
|
|
environment.etc."system/rainbow-resort".source = "${nixos-config.nixosConfigurations.rainbow-resort.config.system.build.toplevel
|
|
|
|
}";
|
|
|
|
environment.etc."system/rainbow-resort-disko".source = "${nixos-config.nixosConfigurations.rainbow-resort.config.system.build.diskoScript
|
|
|
|
}";
|
|
|
|
environment.etc."system/thinkrac".source = "${nixos-config.nixosConfigurations.thinkrac.config.system.build.toplevel
|
|
|
|
}";
|
|
|
|
environment.etc."system/thinkrac-disko".source = "${nixos-config.nixosConfigurations.thinkrac.config.system.build.diskoScript
|
|
|
|
}";
|
|
|
|
*/
|
2024-11-07 09:01:53 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.writeShellScriptBin "install-thinkrac-unattended" ''
|
|
|
|
set -eux
|
|
|
|
exec ${pkgs.disko}/bin/disko-install --flake "${nixos-config}#thinkrac" --disk main "${nixos-config.nixosConfigurations.thinkrac.config.disko.devices.disk.main.device}"
|
|
|
|
'')
|
2024-11-08 08:09:42 +00:00
|
|
|
(pkgs.writeShellScriptBin "install-rainbow-resort-unattended" ''
|
|
|
|
set -eux
|
|
|
|
exec ${pkgs.disko}/bin/disko-install --flake "${nixos-config}#rainbow-resort" --disk main "${nixos-config.nixosConfigurations.rainbow-resort.config.disko.devices.disk.main.device}"
|
|
|
|
'')
|
2024-11-07 09:01:53 +00:00
|
|
|
];
|
2024-11-05 08:11:22 +00:00
|
|
|
}
|