Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easy to generate an ISO with default NixOS configuration #15

Open
bouk opened this issue Feb 14, 2023 · 2 comments
Open

Make it easy to generate an ISO with default NixOS configuration #15

bouk opened this issue Feb 14, 2023 · 2 comments

Comments

@bouk
Copy link

bouk commented Feb 14, 2023

Hi, I want to customize the GUI NixOS installation CD by adding a bunch of configuration that should be set by default (e.g. enabling sshd, adding ssh keys). It would be cool if it was easier to customize the set-up process to include default configuration.

@bouk bouk changed the title Make it easy to generate an ISO with extra configuration Make it easy to generate an ISO with default NixOS configuration Feb 14, 2023
@IvarWithoutBones
Copy link
Member

Having the ability to add snippets to the generated configuration.nix would be pretty useful for me as well. I was wondering if there is a clear path to move forward with this issue?

A solution that comes to mind would be to simply hardcode in a string at build time (a plain substituteAll would do the trick), which could be exposed to the end user through overrides. Not sure if that is the best way of going about this though, so I figured I'd ask for some feedback :)

@vlinkz
Copy link
Member

vlinkz commented Mar 14, 2023

Yes, I think something like that would work. Have a seperate configuration.nix file with some placeholders that the installer will replace with the user options. I actually recently did something similar with the Icicle installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants