Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukateras committed Jul 17, 2018
1 parent 585a13d commit 043605c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,2 +1,2 @@
language: nix
script: tests/eval.sh
script: nix-build --dry-run --show-trace
47 changes: 46 additions & 1 deletion default.nix
@@ -1 +1,46 @@
{ ... }: {}
{ ... }:

let
shim = {
boot.loader.systemd-boot.enable = true;

fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
};

nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
};
};

buildProfile = profile: (import <nixpkgs/nixos> {
configuration.imports = [ profile shim ];
}).system;
in

{
acer-aspire-4810t = buildProfile ./acer/aspire/4810t;

airis-n990 = buildProfile ./airis/n990;

apple-macbook-air-4 = buildProfile ./apple/macbook-air/4;
apple-macbook-air-6 = buildProfile ./apple/macbook-air/6;
apple-macbook-pro-10-1 = buildProfile ./apple/macbook-pro/10-1;
apple-macbook-pro-12-1 = buildProfile ./apple/macbook-pro/12-1;

dell-xps-15-9550 = buildProfile ./dell/xps/15-9550;

lenovo-thinkpad-t410 = buildProfile ./lenovo/thinkpad/t410;
lenovo-thinkpad-t440p = buildProfile ./lenovo/thinkpad/t440p;
lenovo-thinkpad-t460s = buildProfile ./lenovo/thinkpad/t460s;
lenovo-thinkpad-x140e = buildProfile ./lenovo/thinkpad/x140e;
lenovo-thinkpad-x220 = buildProfile ./lenovo/thinkpad/x220;
lenovo-thinkpad-x230 = buildProfile ./lenovo/thinkpad/x230;
lenovo-thinkpad-x250 = buildProfile ./lenovo/thinkpad/x250;

microsoft-surface-pro-3 = buildProfile ./microsoft/surface-pro/3;

pcengines-apu = buildProfile ./pcengines/apu;
}
15 changes: 0 additions & 15 deletions tests/eval.nix

This file was deleted.

16 changes: 0 additions & 16 deletions tests/eval.sh

This file was deleted.

0 comments on commit 043605c

Please sign in to comment.