WIP: Create installation ISO for pre-configured NixOS
This commit is contained in:
parent
b7de3f34f9
commit
2c6afa98bc
6
nix/digitalocean/image.nix
Normal file
6
nix/digitalocean/image.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
let config = {
|
||||
imports = [ <nixpkgs/nixos/modules/virtualisation/digital-ocean-image.nix> ];
|
||||
};
|
||||
in
|
||||
(pkgs.nixos config).digitalOceanImage
|
4
nix/digitalocean/shell.nix
Normal file
4
nix/digitalocean/shell.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ curl morph ];
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user