Giter VIP home page Giter VIP logo

Comments (8)

srid avatar srid commented on September 28, 2024

See #23

let configForCurrentSystem = cfg: cfg.config.nixpkgs.hostPlatform.system == system;

Is this not how we check the system of a nixos configuration?

You can use nixpkgs.hostPlatform = "x86_64-linux"; in your studiopolis config to resolve this, but I'm wondering if my configForCurrentSystem should be rewritten.

from devour-flake.

srid avatar srid commented on September 28, 2024

I suppose I should use system:

image

from devour-flake.

srid avatar srid commented on September 28, 2024

nixpkgs has a mess of system options:

image

from devour-flake.

srid avatar srid commented on September 28, 2024

cc @roberth - What system option should we use to answer the question "What platform this nixosconfiguration will build/run on?"

from devour-flake.

srid avatar srid commented on September 28, 2024

@locallycompact Try this in the meanwhile: #26

I believe localSystem should exist for all configurations, but not entirely sure.

from devour-flake.

roberth avatar roberth commented on September 28, 2024

Those options aren't suitable for reading, partly because of nixpkgs.pkgs and partly because of the legacy support.

Use pkgs.stdenv.hostPlatform or pkgs.stdenv.hostPlatform.system if you need it to be a string.

from devour-flake.

roberth avatar roberth commented on September 28, 2024

ie the module argument

from devour-flake.

srid avatar srid commented on September 28, 2024

No modules are involved, because we are dealing with the final NixOS configuration built by nixosSystem. Okay, so it should be cfg.pkgs.stdenv.hostPlatform.system. Thanks!

https://github.com/srid/devour-flake/pull/26/files

from devour-flake.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.