diff --git a/flake.nix b/flake.nix index 2d273c9..9f48648 100755 --- a/flake.nix +++ b/flake.nix @@ -21,12 +21,24 @@ }; in { - nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { modules = [ { 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, ... }: { imports = [ ({ config, pkgs, ... }: { diff --git a/iso.nix b/iso.nix new file mode 100644 index 0000000..8bf6fe0 --- /dev/null +++ b/iso.nix @@ -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"; +} \ No newline at end of file