diff options
author | lassulus <lassulus@lassul.us> | 2017-07-14 00:41:53 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-07-14 00:41:53 +0200 |
commit | d77bedf972df48b59646599a8f548eb636a825e1 (patch) | |
tree | f8881c9caf7fb4c2848a28a44597d546382e1452 /nin/source.nix | |
parent | 63c8634c5f9d546d2108ee9dd72fb1b9d2fa4ed6 (diff) | |
parent | 0344772d15b2c2c035a75ab90b29a0862de09d08 (diff) |
Merge remote-tracking branch 'onondaga/master'
Diffstat (limited to 'nin/source.nix')
-rw-r--r-- | nin/source.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nin/source.nix b/nin/source.nix new file mode 100644 index 0000000..1eb9185 --- /dev/null +++ b/nin/source.nix @@ -0,0 +1,19 @@ +with import <stockholm/lib>; +host@{ name, secure ? false }: let + builder = if getEnv "dummy_secrets" == "true" + then "buildbot" + else "nin"; + _file = <stockholm> + "/nin/1systems/${name}/source.nix"; +in + evalSource (toString _file) { + nixos-config.symlink = "stockholm/nin/1systems/${name}/config.nix"; + secrets.file = getAttr builder { + buildbot = toString <stockholm/nin/2configs/tests/dummy-secrets>; + nin = "/home/nin/secrets/${name}"; + }; + stockholm.file = toString <stockholm>; + nixpkgs.git = { + url = https://github.com/nixos/nixpkgs; + ref = "01c3847"; + }; + } |