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

how can I try this on my machine? #2

Open
codygman opened this issue Nov 3, 2020 · 1 comment
Open

how can I try this on my machine? #2

codygman opened this issue Nov 3, 2020 · 1 comment

Comments

@codygman
Copy link

codygman commented Nov 3, 2020

I'm new to flakes, can I simply do:

sudo nixos-rebuild test --flake

Then reboot? Maybe this should be clear to me from the readme, but I've read it a couple times and don't know how.

@colemickens
Copy link
Owner

I can extend the README soon, but you'd want to do a few things:

  1. Fork + clone this somewhere so that you can hack on it, personalize it.
  2. Update the mysystem attribute in the flake to be the hostname of your machine.
  3. Update the actual configuration.nix to be your config, or import your config/hardware-info, etc
  4. Then you'd run sudo nixos-rebuild switch --flake '.#' or sudo nixos-rebuild switch --flake '.#systemname' from the repo directory.

Also, consider https://github.com/nrdxp/nixflk which is a more fully featured, more structured and opinionated config than this barebones example. In fact, I might try to get rid of this repo and merge some README stuff into nixflk. IDK if @nrdxp thinks anything in this repo currently is uniquely useful. I mostly made it to interactively assist some folks in #nixos that needed help understanding flakes.

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

2 participants