git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #7278 from nbp/nixos-manual-x86

Fix NixOS Manual builds

commitc65311116717d8c563b849f7a0df7cbd5d1cfe78 authorNicolas B. Pierron <nicolas.b.pierron@gmail.com> dateWed 8 Apr 2015, 14:24 (12 years ago) parent458c838296e6c4
3 files changed+5−3
nixos/modules/misc/nixpkgs.nix+2−2 nixos/modules/services/misc/nixos-manual.nix+1 nixos/modules/services/networking/btsync.nix+2−1
nixos/modules/misc/nixpkgs.nix+2−2
@@ -59,8 +59,8 @@ in
5959 };
6060
6161 nixpkgs.system = mkOption {
62− type = types.str;
63− default = builtins.currentSystem;
62+ type = types.uniq types.str;
63+ example = "i686-linux";
6464 description = ''
6565 Specifies the Nix platform type for which NixOS should be built.
6666 If unset, it defaults to the platform type of your host system.
nixos/modules/services/misc/nixos-manual.nix+1
@@ -14,6 +14,7 @@ let
1414 versionModule =
1515 { system.nixosVersionSuffix = config.system.nixosVersionSuffix;
1616 system.nixosRevision = config.system.nixosRevision;
17+ nixpkgs.system = config.nixpkgs.system;
1718 };
1819
1920 eval = evalModules {
nixos/modules/services/networking/btsync.nix+2−1
@@ -200,7 +200,6 @@ in
200200
201201 package = mkOption {
202202 type = types.package;
203− default = pkgs.bittorrentSync14;
204203 example = literalExample "pkgs.bittorrentSync20";
205204 description = ''
206205 Branch of bittorrent sync to use.
@@ -277,6 +276,8 @@ in
277276 }
278277 ];
279278
279+ services.btsync.package = mkOptionDefault pkgs.bittorrentSync14;
280+
280281 users.extraUsers.btsync = {
281282 description = "Bittorrent Sync Service user";
282283 home = cfg.storagePath;