summaryrefslogtreecommitdiffstats
path: root/tests/build-profile.nix
blob: c4509d36ad33fee15ea68de08f398098f33ae7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ profile }:

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;
    };
  };
in (import <nixpkgs/nixos> {
  configuration.imports = [ profile shim ];
}).system