2021-11-17 16:32:18 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.base;
|
2021-12-18 16:23:14 +01:00
|
|
|
qmkUdevRules = (builtins.readFile ./qmk.rules);
|
2021-11-17 16:32:18 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.base = {
|
|
|
|
kernel = mkOption {
|
|
|
|
description = "which kernel to run";
|
|
|
|
type = types.unspecified;
|
2021-12-10 20:13:03 +01:00
|
|
|
default = pkgs.linuxKernel.packages.linux_5_15;
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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-29 08:05:46 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2021-12-06 09:58:39 +01:00
|
|
|
dig
|
2021-11-29 08:05:46 +01:00
|
|
|
dogdns
|
|
|
|
file
|
2021-12-06 09:58:39 +01:00
|
|
|
usbutils
|
|
|
|
ht-rust
|
2022-01-06 12:28:23 +01:00
|
|
|
nix-template
|
2022-01-09 14:13:08 +01:00
|
|
|
nvd
|
2021-11-29 08:05:46 +01:00
|
|
|
];
|
2021-12-18 16:23:14 +01:00
|
|
|
|
|
|
|
services.udev = {
|
|
|
|
extraRules = qmkUdevRules;
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
}
|