mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-14 12:18:59 +00:00
nixos-generators/install-iso-graphical: init
This commit is contained in:
parent
03cdbc64a9
commit
54104720b5
18
modules/nixos-generators/install-iso-graphical.nix
Normal file
18
modules/nixos-generators/install-iso-graphical.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# A custom nixos-generator module to set as a graphical installation with a
|
||||||
|
# graphical installer profile. Useful for hosts that can be used both as a
|
||||||
|
# persistent live installer or as a graphical ISO. Based from the original
|
||||||
|
# install-iso format.
|
||||||
|
{ lib, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-calamares.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
# override installation-cd-base and enable wpa and sshd start at boot
|
||||||
|
systemd.services.wpa_supplicant.wantedBy = lib.mkForce ["multi-user.target"];
|
||||||
|
systemd.services.sshd.wantedBy = lib.mkForce ["multi-user.target"];
|
||||||
|
|
||||||
|
formatAttr = "graphicalIsoImage";
|
||||||
|
fileExtension = ".iso";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user