creating a custom installer iso

This commit is contained in:
2025-02-15 19:23:30 -05:00
parent f7f0d02ef9
commit 43b582fb33
4 changed files with 32 additions and 1 deletions

3
.gitignore vendored
View File

@@ -165,3 +165,6 @@ test.*
# syncthing
.stfolder
# nixos build results
result

View File

@@ -91,6 +91,12 @@
];
specialArgs = { inherit inputs outputs; };
};
installer = lib.nixosSystem {
modules = [
./systems/installer
];
specialArgs = { inherit inputs outputs; };
};
};
};
}

View File

@@ -0,0 +1,22 @@
{
inputs,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
environment.systemPackages = [
inputs.system_tools.packages.x86_64-linux.default
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYZFsc9CSH03ZUP7y81AHwSyjLwFmcshVFCyxDcYhBT rhapsody-in-green" # cspell:disable-line
];
}

View File

@@ -25,7 +25,7 @@
"rspace" = "'for f in *\ *; do mv \"$f\" \"\${f// /_}\"; done'";
"rebuild" = "sudo nixos-rebuild switch --flake /home/richie/dotfiles#$HOST";
"nix-test" = "nixos-rebuild test --flake /home/richie/dotfiles";
"build_iso" = "nix build .#nixosConfigurations.installer.config.system.build.isoImage";
};
};
}