added .iso

This commit is contained in:
2026-03-28 08:11:24 -05:00
parent c7c4697863
commit 3b37d6de07
2 changed files with 35 additions and 1 deletions

View File

@@ -21,12 +21,24 @@
}; };
in in
{ {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [ modules = [
{ nixpkgs.hostPlatform = "x86_64-linux"; } { nixpkgs.hostPlatform = "x86_64-linux"; }
]; ];
}; };
nixosConfigurations.sovran-iso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [ overlay-stable ];
})
./iso.nix
nix-bitcoin.nixosModules.default
nixvim.nixosModules.nixvim
];
};
nixosModules.Sovran_SystemsOS = { pkgs, lib, config, ... }: { nixosModules.Sovran_SystemsOS = { pkgs, lib, config, ... }: {
imports = [ imports = [
({ config, pkgs, ... }: { ({ config, pkgs, ... }: {

22
iso.nix Normal file
View File

@@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
{
imports = [
# Base ISO profile
"${pkgs.path}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
# Your full system config + modules
./configuration.nix
];
# ISO tweaks
isoImage.isoName = "Sovran_SystemsOS.iso";
# Convenience: enable SSH in live ISO
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh.settings.PasswordAuthentication = true;
# Optional: default password for ISO login only
users.users.nixos.password = "nixos";
}