Alien Top
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
craftbotB to Nix@lemmy.nix-community.orgEnglish · 2 年前

If the result of building /etc/nixos/configuration.nix is dependent on the channel, why is the channel not defined in /etc/nixos/configuration.nix?

message-square
message-square
15
link
fedilink
1
message-square

If the result of building /etc/nixos/configuration.nix is dependent on the channel, why is the channel not defined in /etc/nixos/configuration.nix?

craftbotB to Nix@lemmy.nix-community.orgEnglish · 2 年前
message-square
15
link
fedilink
alert-triangle
You must log in or register to comment.
  • TehDingB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 年前

    Join the side of flakes

  • mister_drgnB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 年前

    Just add a script in the same directory as configuration.nix that sets up your channels. This is one of various non-problems that flakes are supposed to solve.

    You can also use fetchFromGithub if you want to pin to a particular version of nixpkgs, or anything else.

  • Ajlow2000B
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 年前

    Providing some links on flakes:

    The wiki is a solid starting point: https://nixos.wiki/wiki/Flakes

    This video: https://youtu.be/S3VBi6kHw5c?si=oC0zXzQ8XWTCqM-y

    Side note. Vimjoyer on YouTube (that video link above) is pretty solid. I like his content/tutorials a lot

  • proofconstructB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 年前

    You can pin a Nixpkgs commit in your configuration, without needing flakes

  • TuringTestTwisterB
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 年前

    This is the first and only real reason I ever used flakes.

    • CaniballShiaLaBuffB
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      But you don’t need flakes, there are so many ways to solve this problem that don’t require experimental features.

Nix@lemmy.nix-community.org

nix@lemmy.nix-community.org

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !nix@lemmy.nix-community.org
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 5 local subscribers
  • 5 subscribers
  • 152 Posts
  • 543 Comments
  • Modlog
  • mods:
  • admin@lemmy.nix-community.org
  • adisbladis@lemmy.blad.is
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org