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

Some of us are noobs #404

Open
authenticastrology opened this issue Oct 11, 2024 · 13 comments
Open

Some of us are noobs #404

authenticastrology opened this issue Oct 11, 2024 · 13 comments

Comments

@authenticastrology
Copy link

Some of us...well okay... at least myself are not fully adept with flakes and it is like rocket science to us. But, we want to install Cosmic anyway. Would love a step-by-step guide. Know you may not have the time. But if anyone else does, it would be excellent. Or a video. But knowing whether to add this to the default flake, and how...Or whether to create a new one...would be excellent.

Sorry if this is the wrong spot for this. But nowhere else to comment.

@colemickens
Copy link
Contributor

@authenticastrology The README generally demonstrates what you'd need to add to your flake to add nixos-cosmic as an input to your flake, as well as how to utilize it into your system configuration.

For example:

to the default flake, and how...Or whether to create a new one...

is a bit confusing, or leads me to wonder if you have some confusion?

For example, I have a single flake that encompasses:

  • my laptop nixos config (which utilizes the nixos-cosmic nixos module)
  • my server nixos config
  • devshells for various "things"
  • various packages that I have pinned to tip versions

That singular flake is where I added nixos-cosmic as an input, and then in one of my system configurations, I pull in the nixos module, from that flake input.

@Purian23
Copy link

@authenticastrology, were you able to get sorted to get up and running?

@authenticastrology
Copy link
Author

authenticastrology commented Oct 14, 2024 via email

@FelixSchausberger
Copy link

Can you tell where you're stuck? Or provide your dotfiles?

What always helped me a lot in the beginning is to see how other people have implemented it, so here are my dotfiles if you want to take a look at them.

@foldfree
Copy link

i just got it working yesterday. I recommend you spend some time reading the the wiki on flakes + get help from claude.ai and phind.com or whatever LLM you like for troubleshooting.

one thing missing in the readme (I think?) is that you should do sudo nixos-rebuild test --flake . and not just nixos rebuild test before adding the cosmic enable in your configuration.nix.
Then rebuid with sudo nixos-rebuild switch --flake .

Also make sure you did not add any nixpkgs input in your flakes inputs beside the cosmic one to benefit from cachix.
I’m quite clueless about nixos this took me a couple of hours. My config had some cleanup to do. If you start from a vanilla install, it should be easier.

@authenticastrology
Copy link
Author

authenticastrology commented Nov 1, 2024 via email

@authenticastrology
Copy link
Author

I got it all figured out! Yea!!!!!!!.

Question though....I know it's in Alpha. But is anyone else having issues with lag when things open?

I have used the Pop OS version too and it seems a bit snappier.. Not sure if it is a NixOS issue or not.

@colemickens
Copy link
Contributor

If my dGPU is not active, launching windows takes longer than it feels it should. It fires up the dGPU for animations, then animates opening the new window. For me, it's quite noticeably slow, but I'm also behind on updates, so hoping it improves...

@tilupe
Copy link

tilupe commented Dec 4, 2024

Hey I just started with NixOS and wanted to install cosmic too. When running a nixos-rebuild, it always gets stuck at this phase
image

It just compiles there for a long time and at some point it the terminal crashes or after a while I get logged out and everything is cleared. Anybody an idea what I can do to change that?

@hanckmann
Copy link

@tilupe I guess you are being bitten by this issue as well: #495

@artsiomkaltovich
Copy link

one thing missing in the readme (I think?) is that you should do sudo nixos-rebuild test --flake . and not just nixos rebuild test before adding the cosmic enable in your configuration.nix. Then rebuid with sudo nixos-rebuild switch --flake .

Unfortunattly it produces the following error for me:

   … while calling the 'seq' builtin
     at /nix/store/5wvrlpfrwlmg24ywkybvidyzcvki6bwx-source/lib/modules.nix:334:18:
      333|         options = checked options;
      334|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      335|         _module = checked (config._module);

   … while evaluating a branch condition
     at /nix/store/5wvrlpfrwlmg24ywkybvidyzcvki6bwx-source/lib/modules.nix:273:9:
      272|       checkUnmatched =
      273|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
         |         ^
      274|           let

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: path '/nix/store/mk0n6m7qvqd9n4smvgds403whdz9bazf-source/configuration.nix' does not exist

Have anybody experienced something like that?

@artsiomkaltovich
Copy link

one thing missing in the readme (I think?) is that you should do sudo nixos-rebuild test --flake . and not just nixos rebuild test before adding the cosmic enable in your configuration.nix. Then rebuid with sudo nixos-rebuild switch --flake .

Unfortunattly it produces the following error for me:

   … while calling the 'seq' builtin
     at /nix/store/5wvrlpfrwlmg24ywkybvidyzcvki6bwx-source/lib/modules.nix:334:18:
      333|         options = checked options;
      334|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      335|         _module = checked (config._module);

   … while evaluating a branch condition
     at /nix/store/5wvrlpfrwlmg24ywkybvidyzcvki6bwx-source/lib/modules.nix:273:9:
      272|       checkUnmatched =
      273|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
         |         ^
      274|           let

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: path '/nix/store/mk0n6m7qvqd9n4smvgds403whdz9bazf-source/configuration.nix' does not exist

Have anybody experienced something like that?

Ok, it seems the problem was that flake was initialized in my home directory and not in /etc/nixos, but everything is compiled locally for me, still some progress I guess :)

@Elias-Graf
Copy link

@artsiomkaltovich no, the issue isn't where the flake flake was initialized, but that you forgot to move a file, in this case "configuration.nix" into the repository. OR, something I've run into a couple of times myself, flakes only consider files, that have been added to the git index. That's why my rebuild command is this:

nix fmt && git add . && sudo nixos-rebuild switch --flake .#<NAME_OF_HOST>

and I just reverse search my history for rebuild.

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

9 participants