From e791cf43bcb5a7ec180988a9bcec982d7000af9b Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Wed, 15 Jul 2026 18:53:00 -0700 Subject: misc --- machines/iso.nix | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'machines/iso.nix') diff --git a/machines/iso.nix b/machines/iso.nix index d3ca992..726f0aa 100644 --- a/machines/iso.nix +++ b/machines/iso.nix @@ -1,33 +1,23 @@ -{ modulesPath, pkgs, ... }: { +{ + modulesPath, + pkgs, + config, + lib, + flake, + ... +}: +{ imports = [ - (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") - (modulesPath + "/installer/cd-dvd/channel.nix") + # (modulesPath + "/installer/cd-dvd/iso-image.nix") + # (modulesPath + "/installer/cd-dvd/channel.nix") + (modulesPath + "/profiles/qemu-guest.nix") + flake.outputs.nixosModules.disk ]; nixpkgs.hostPlatform.system = "x86_64-linux"; - nix.settings = { - experimental-features = [ "nix-command" "flakes" ]; + depot.disk = { + enable = true; }; - environment.systemPackages = with pkgs; [ - bash - git - gum - jq - (writeShellScriptBin "xinstall" '' - set -euo pipefail - - FLAKE="github:kbujari/depot/xnet" - - TARGET=$( - nix flake show "$FLAKE" --json 2>/dev/null \ - | jq -r '.["nixosConfigurations"] | keys[] | select(. != "iso")' \ - | gum choose - ) - - gum confirm --default=false "This will erase the selected disk, confirm:" - - echo selected "$FLAKE"#"$TARGET" - '') - ]; + users.users.root.initialPassword = "hello"; } -- cgit v1.3.1