2021-11-17 16:32:18 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.base;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.base = {
|
|
|
|
kernel = mkOption {
|
|
|
|
description = "which kernel to run";
|
|
|
|
type = types.unspecified;
|
|
|
|
default = pkgs.linuxKernel.packages.linux_5_14;
|
|
|
|
};
|
|
|
|
|
|
|
|
plymouth = {
|
|
|
|
enable = mkEnableOption "enable plymouth splash screen";
|
|
|
|
};
|
|
|
|
|
|
|
|
work = mkOption {
|
|
|
|
description = "whether this is a work machine.";
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
boot.kernelPackages = cfg.kernel;
|
|
|
|
|
|
|
|
boot.plymouth = mkIf (cfg.plymouth.enable) {
|
|
|
|
enable = true;
|
|
|
|
};
|
2021-11-18 15:02:12 +01:00
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
|
|
|
|
programs.fish.enable = true;
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
}
|