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

22 lines
830 B
Nix
Raw Permalink Normal View History

2024-08-19 09:56:10 +02:00
{ pkgs, profile }:
2023-12-25 22:45:38 +01:00
(pkgs.nixos [
profile
({ config, lib, ... }: {
nixpkgs.pkgs = pkgs;
2022-01-31 06:05:05 +01:00
boot.loader.systemd-boot.enable = !config.boot.loader.generic-extlinux-compatible.enable && !config.boot.loader.raspberryPi.enable;
# we forcefully disable grub here just for testing purposes, even though some profiles might still use grub in the end.
boot.loader.grub.enable = false;
# so we can have assertions that require a certain minimum kernel version,
# We use a priority of 1200 here, which is higher than the default of 1000
boot.kernelPackages = lib.mkOverride 1200 pkgs.linuxPackages_latest;
fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
};
2023-12-25 22:45:38 +01:00
system.stateVersion = lib.version;
})
]).config.system.build.toplevel