Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 5 days ago

Angle brackets in a Nix flake world

fzakaria.com

external-link
message-square
9
fedilink
  • cross-posted to:
  • hackernews
16
external-link

Angle brackets in a Nix flake world

fzakaria.com

ruffsl@programming.dev to Nix / NixOS@programming.devEnglish · 5 days ago
message-square
9
fedilink
  • cross-posted to:
  • hackernews
At DEFCON33, the Nix community had its first-ever presence via nix.vegas and I ended up in fun conversation with tomberek 🙌.

Related discussion:

  • https://news.ycombinator.com/item?id=44859849
alert-triangle
You must log in or register to comment.
  • degen@midwest.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    5 days ago

    Sooo right. Trying to learn nix, flakes, and home-manager in parallel without realizing extraSpecialArgs exists isn’t fun.

    Skill issue, maybe, but it’s an ergonomic issue too!

    copes

    • Deebster@infosec.pub
      link
      fedilink
      English
      arrow-up
      6
      ·
      5 days ago

      extraSpecialArgs has real_escape_string energy

      • degen@midwest.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 days ago

        really fits the snowflake vibe too

    • balsoft@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 days ago

      BTW, you shouldn’t really need extraSpecialArgs in most cases; setting a _module.args config option should be enough.

      • degen@midwest.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 days ago

        Gotta love that I’ve had my daily use machine running nixos for a couple years now and I don’t even know what that is 😂

        • balsoft@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 days ago

          This is needed for Flake-based setups where you use some NixOS modules that aren’t in Nixpkgs (home-manager being the most common use-case).

      • InnerScientist@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 days ago

        Any sites you can link that explain the differences and how to use it?

        • balsoft@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 days ago

          There’s a short explanation in this section: https://nixos.org/manual/nixos/stable/#sec-option-types-submodule (look for specialArgs) and in this section: https://nixos.org/manual/nixpkgs/stable/#module-system-lib-evalModules-param-specialArgs. I don’t know whether it’s documented properly somewhere.

  • balsoft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    I have experimented with something very similar in the past. I think the main issue is that it is quite confusing to read, being familiar with what the old <> syntax does.

Nix / NixOS@programming.dev

nix@programming.dev

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@programming.dev

Main links

  • website
  • wiki
  • matrix

Videos

  • Linux Experiment about NixOS
  • Chris Titus Tech
  • Mental Outlaw
Visibility: Public
globe

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

  • 8 users / day
  • 79 users / week
  • 153 users / month
  • 509 users / 6 months
  • 1 local subscriber
  • 2.39K subscribers
  • 177 Posts
  • 576 Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • ballmerpeaking@programming.dev
  • WhiteBlackGoose@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org