summaryrefslogtreecommitdiff
path: root/machines/iso.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/iso.nix')
-rw-r--r--machines/iso.nix42
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";
}