nixops

NixOps, the NixOS-based cloud deployment tool

Github星跟蹤圖

NixOps

NixOps (formerly known as Charon) is a tool for deploying NixOS
machines in a network or cloud.

Developing

To start developing on nixops, you can run:

  $ ./dev-shell --arg p "(p: [ p.plugin1 ])"

Where plugin1 can be any available nixops plugin, and where
none or more than one can be specified, including local plugins.
An example is:

  $ ./dev-shell --arg p "(p: [ p.aws p.hetzner (p.callPackage ../myplugin/release.nix {})])"

Available plugins, such as "aws" and "hetzner" in the example
above, are the plugin attribute names found in the data.nix file.

To update the available nixops plugins found in github repositories,
edit the all-plugins.txt file with any new github plugin repositories
that are available and then execute the update-all script. This will
refresh the data.nix file, providing new plugin attributes to use.

Local nixops plugins, such as the callPackage ../myplugin/release.nix {}
example seen above, have no need to be in the all-plugins.txt
or data.nix file.

Building from source

The command to build NixOps depends on your platform and which plugins you choose:

  • nix-build release.nix -A build.x86_64-linux --arg p "(p: [ p.plugin1 ])" on 64 bit linux.
  • nix-build release.nix -A build.i686-linux --arg p "(p: [ p.plugin1 ])" on 32 bit linux.
  • nix-build release.nix -A build.x86_64-darwin --arg p "(p: [ p.plugin1 ])" on OSX.

Similarly, using NixOps from another project (for instance a nix-shell) can be done using:

stdenv.mkDerivation {
  name = "my-nixops-env";
  buildInputs = [
    (import /path/to/nixops/release.nix { p = (p: [ p.plugin1 ]); }).build.x86_64-linux
  ];
}

主要指標

概覽
名稱與所有者NixOS/nixops
主編程語言Python
編程語言Python (語言數: 3)
平台
許可證GNU Lesser General Public License v3.0
所有者活动
創建於2011-10-24 15:49:58
推送於2025-02-12 08:16:03
最后一次提交2025-02-12 09:16:03
發布數15
最新版本名稱v1.7 (發布於 2019-04-17 09:30:10)
第一版名稱pre-systemd (發布於 )
用户参与
星數2k
關注者數57
派生數362
提交數3.6k
已啟用問題?
問題數856
打開的問題數311
拉請求數398
打開的拉請求數17
關閉的拉請求數193
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?