WIP: Create installation ISO for pre-configured NixOS

This commit is contained in:
Joey Hafner 2024-10-21 14:57:59 -07:00
parent b7de3f34f9
commit 2c6afa98bc
No known key found for this signature in database
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> { } }:
let config = {
imports = [ <nixpkgs/nixos/modules/virtualisation/digital-ocean-image.nix> ];
};
in
(pkgs.nixos config).digitalOceanImage

View File

@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [ curl morph ];
}

View File

@ -52,6 +52,15 @@
in {
nixosConfigurations = {
iso = lib.nixosSystem {
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
./iso/server-configuration.nix
inputs.home-manager.nixosModules.home-manager
];
specialArgs = {inherit pkgs; };
};
${systemSettings.hostname} = lib.nixosSystem {
modules = [
./nixos/configuration.nix