Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

nix-giant/system-values

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This repo is inspired by https://www.mat.services/posts/command-line-flake-arguments/.

It aims to override system related inputs of flakes at runtime.

Usage

Take an example flake:

{
  inputs = {
    current-system.url = "github:nix-giant/system-values/x86_64-linux";
  };
  outputs = { self, current-system }: {
    message = current-system;
  };
}

Get the default current-system:

$ nix eval --raw '.#message'
x86_64-linux

Override the default current-system:

$ nix eval --override-input current-system github:nix-giant/system-values/aarch64-linux --raw '.#message'
aarch64-linux

That's it.

Nothing will be changed, so I archived this repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages