1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-01 00:29:40 +01:00
nixos-hardware/tests/build-profile.nix

20 lines
482 B
Nix
Raw Normal View History

{ profile }:
let
2022-01-31 06:05:05 +01:00
shim = { config, ... }: {
boot.loader.systemd-boot.enable = !config.boot.loader.generic-extlinux-compatible.enable && !config.boot.loader.raspberryPi.enable;
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