diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-07-15 18:53:00 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-07-15 18:55:53 -0700 |
| commit | e791cf43bcb5a7ec180988a9bcec982d7000af9b (patch) | |
| tree | 07914fd0808bf739a2b3e6e43588073a71d2f1b8 /machines/iso.nix | |
| parent | e0e0d833af144e3d8049585e167153107e05a46c (diff) | |
| download | depot-testing.tar.gz depot-testing.tar.bz2 depot-testing.zip | |
misctesting
Diffstat (limited to 'machines/iso.nix')
| -rw-r--r-- | machines/iso.nix | 42 |
1 files changed, 16 insertions, 26 deletions
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"; } |
