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