Comments (8)
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.
I suppose I should use system
:
from devour-flake.
nixpkgs has a mess of system options:
from devour-flake.
cc @roberth - What system option should we use to answer the question "What platform this nixosconfiguration will build/run on?"
from devour-flake.
@locallycompact Try this in the meanwhile: #26
I believe localSystem
should exist for all configurations, but not entirely sure.
from devour-flake.
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.
ie the module argument
from devour-flake.
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)
- Support other kinds of flake outputs
- Allow passing custom `--override-input`
- Use `flake-schemas` HOT 1
- Allow supporting nix-build-uncached
- Add filters HOT 2
- Missing dependency on findutils
- Error: cannot coerce a set to a string HOT 2
- bug: fails if there is no default package output HOT 3
- `v4` release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devour-flake.