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

init nixos-remote #1

Merged
merged 7 commits into from
Nov 10, 2022
Merged

init nixos-remote #1

merged 7 commits into from
Nov 10, 2022

Conversation

Lassulus
Copy link
Contributor

initial version of nixos-remote. takes a flake like https://github.com/Lassulus/flakes-testing to format/install

nixos-remote Show resolved Hide resolved
@Lassulus
Copy link
Contributor Author

possible next steps:

@Mic92
Copy link
Member

Mic92 commented Nov 10, 2022

I would say README is the most important one. Than I can have people starting to test this.

nixos-remote Show resolved Hide resolved
}

nix_args=()
kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.05/nixos-kexec-installer-x86_64-linux.tar.gz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.05/nixos-kexec-installer-x86_64-linux.tar.gz
# FIXME support aarch64 at least.
kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.05/nixos-kexec-installer-x86_64-linux.tar.gz

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we just make it dependant on uname -m from the target?

Copy link
Member

@Mic92 Mic92 Nov 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target="$(uname -s).$(uname -m)"
case "$target" in
    Linux.x86_64)
        url="https://github.com/nix-community/nixos-images/releases/download/nixos-22.05/nixos-kexec-installer-x86_64-linux.tar.gz"
        ;;
     *)
       echo "$target is currently not supported by by our kexec tarball"
       exit 1
esac

@Lassulus Lassulus merged commit 536e746 into main Nov 10, 2022
@Lassulus Lassulus deleted the init branch November 10, 2022 20:11
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

Successfully merging this pull request may close these issues.

2 participants