diff options
author | tv <tv@krebsco.de> | 2016-07-16 21:43:38 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-07-17 00:53:21 +0200 |
commit | 514daf3d4611c3d6f451964b5f7ebce22219e6d3 (patch) | |
tree | 70a0d4b7d19489e7213a4b414a9f507d8bcb1b11 /tv/2configs | |
parent | e349c7467c56e2a288f90d9ffe0d5793126f4784 (diff) |
replace krebs.build.populate by populate
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/default.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix index a9ba1eadd..04009f54d 100644 --- a/tv/2configs/default.nix +++ b/tv/2configs/default.nix @@ -7,18 +7,18 @@ with config.krebs.lib; krebs.build = { user = config.krebs.users.tv; - source = mapAttrs (_: mkDefault) ({ - nixos-config = "symlink:stockholm/tv/1systems/${config.krebs.build.host.name}.nix"; - secrets = "/home/tv/secrets/${config.krebs.build.host.name}"; - secrets-common = "/home/tv/secrets/common"; - stockholm = "/home/tv/stockholm"; - nixpkgs = { + source = let inherit (config.krebs.build) host; in { + nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix"; + secrets.file = "/home/tv/secrets/${host.name}"; + secrets-common.file = "/home/tv/secrets/common"; + stockholm.file = "/home/tv/stockholm"; + nixpkgs.git = { url = https://github.com/NixOS/nixpkgs; - rev = "8bf31d7d27cae435d7c1e9e0ccb0a320b424066f"; + ref = "8bf31d7d27cae435d7c1e9e0ccb0a320b424066f"; }; - } // optionalAttrs config.krebs.build.host.secure { - secrets-master = "/home/tv/secrets/master"; - }); + } // optionalAttrs host.secure { + secrets-master.file = "/home/tv/secrets/master"; + }; }; networking.hostName = config.krebs.build.host.name; |