Charlotte 🦝 Delenk
67a96de14f
Some checks failed
Hydra checks.x86_64-linux.containers-default Hydra build #25737 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25741 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra packages.x86_64-linux.art-lotte Hydra build #25756 of nixos-config:pr618:packages.x86_64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25748 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte Hydra build #25752 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25747 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25757 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25754 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.not522 Hydra build #25742 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.thinkrac Hydra build #25746 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.pc-installer Hydra build #25744 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.rainbow-resort Hydra build #25745 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.not522-installer Hydra build #25743 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25749 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25750 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25759 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25760 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25739 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra devShells.x86_64-linux.default Hydra build #25738 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra packages.aarch64-linux.package-updater Hydra build #25751 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25758 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25753 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
55 lines
1.8 KiB
Nix
55 lines
1.8 KiB
Nix
{
|
|
config,
|
|
nixos-config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
networking.hostName = "pc-installer";
|
|
imports = [
|
|
"${nixos-config}/config"
|
|
./disko.nix
|
|
./grub.nix
|
|
./hardware.nix
|
|
"${nixos-config}/config/networkmanager.nix"
|
|
];
|
|
system.stateVersion = config.system.nixos.version;
|
|
specialisation.graphical = {
|
|
configuration.imports = [
|
|
./graphical.nix
|
|
"${nixos-config}/config/graphical/plymouth.nix"
|
|
{
|
|
nix.auto-update.specialisation = "graphical";
|
|
}
|
|
];
|
|
};
|
|
specialisation.graphical-verbose = {
|
|
configuration.imports = [
|
|
./graphical.nix
|
|
{
|
|
nix.auto-update.specialisation = "graphical-verbose";
|
|
}
|
|
];
|
|
};
|
|
isInstaller = true;
|
|
/*
|
|
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
|
|
}";
|
|
*/
|
|
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}"
|
|
'')
|
|
(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}"
|
|
'')
|
|
];
|
|
}
|