2022-04-27 00:21:19 +02:00
|
|
|
{ pkgs
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, ...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.base;
|
2023-01-06 01:10:01 +01:00
|
|
|
qmkUdevRules = pkgs.callPackage ./qmk {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2022-03-15 08:30:37 +01:00
|
|
|
probersRules = pkgs.callPackage ./probe-rs {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2022-05-31 11:37:51 +02:00
|
|
|
blink1Rules = pkgs.callPackage ./blink1-udev {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2022-06-29 08:30:48 +02:00
|
|
|
picotoolRules = pkgs.callPackage ./picotool {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2022-09-27 20:39:25 +02:00
|
|
|
solo2Rules = pkgs.callPackage ./solo2 {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2023-01-13 21:20:11 +01:00
|
|
|
|
|
|
|
plymouth-nixos-blur = pkgs.callPackage ./plymouth-nixos-blur {
|
|
|
|
inherit (pkgs.stdenv) mkDerivation;
|
|
|
|
inherit lib;
|
|
|
|
};
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2021-11-17 16:32:18 +01:00
|
|
|
options.eboskma.base = {
|
|
|
|
plymouth = {
|
2022-09-27 20:39:25 +02:00
|
|
|
enable = mkEnableOption "plymouth splash screen";
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
work = mkOption {
|
|
|
|
description = "whether this is a work machine.";
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2022-09-27 20:39:25 +02:00
|
|
|
|
|
|
|
udev-rules = {
|
2023-01-06 01:10:01 +01:00
|
|
|
qmk = mkEnableOption "qmk udev rules";
|
2022-09-27 20:39:25 +02:00
|
|
|
probe-rs = mkEnableOption "probe.rs udev rules";
|
|
|
|
blink1 = mkEnableOption "blink(1) udev rules";
|
|
|
|
picotool = mkEnableOption "picotool udev rules";
|
|
|
|
solo2 = mkEnableOption "solo2 udev rules";
|
|
|
|
};
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
2022-05-03 18:17:38 +02:00
|
|
|
boot.plymouth = mkIf cfg.plymouth.enable {
|
2021-11-17 16:32:18 +01:00
|
|
|
enable = true;
|
2023-01-13 21:20:11 +01:00
|
|
|
themePackages = [ plymouth-nixos-blur ];
|
|
|
|
theme = "nixos-blur";
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
2021-11-18 15:02:12 +01:00
|
|
|
|
2022-07-02 19:09:47 +02:00
|
|
|
hardware.opengl.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
|
2021-11-29 08:05:46 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-03-06 08:27:43 +01:00
|
|
|
btop
|
2022-03-01 08:10:57 +01:00
|
|
|
clinfo
|
2023-01-31 17:13:02 +01:00
|
|
|
config.boot.kernelPackages.cpupower
|
2021-12-06 09:58:39 +01:00
|
|
|
dig
|
2022-10-25 09:40:54 +02:00
|
|
|
du-dust
|
2021-11-29 08:05:46 +01:00
|
|
|
file
|
2022-07-19 07:10:16 +02:00
|
|
|
hexyl
|
2023-11-30 08:59:16 +01:00
|
|
|
jaq
|
2022-07-02 19:09:47 +02:00
|
|
|
lm_sensors
|
2023-06-08 09:30:42 +02:00
|
|
|
man-pages
|
|
|
|
man-pages-posix
|
2022-10-05 15:36:12 +02:00
|
|
|
moreutils
|
2022-01-06 12:28:23 +01:00
|
|
|
nix-template
|
2022-01-09 14:13:08 +01:00
|
|
|
nvd
|
2023-03-13 15:44:22 +01:00
|
|
|
pigz
|
2023-01-31 17:13:02 +01:00
|
|
|
s-tui
|
|
|
|
stress
|
2022-02-09 08:13:16 +01:00
|
|
|
usbutils
|
2022-09-28 08:11:25 +02:00
|
|
|
xh
|
2022-03-18 21:14:51 +01:00
|
|
|
zip
|
2023-06-08 09:30:42 +02:00
|
|
|
] ++ (lib.optionals (pkgs.system == "x86_64-linux") [ rar unrar ]);
|
|
|
|
|
|
|
|
documentation.dev.enable = true;
|
2021-12-18 16:23:14 +01:00
|
|
|
|
2023-04-22 17:28:59 +02:00
|
|
|
i18n = {
|
|
|
|
extraLocaleSettings = {
|
|
|
|
LC_TIME = "nl_NL.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-18 16:23:14 +01:00
|
|
|
services.udev = {
|
2023-09-13 14:50:03 +02:00
|
|
|
packages = (optional cfg.udev-rules.qmk qmkUdevRules)
|
2023-01-06 01:10:01 +01:00
|
|
|
++ (optional cfg.udev-rules.probe-rs probersRules)
|
|
|
|
++ (optional cfg.udev-rules.blink1 blink1Rules)
|
|
|
|
++ (optional cfg.udev-rules.picotool picotoolRules)
|
|
|
|
++ (optional cfg.udev-rules.solo2 solo2Rules);
|
2021-12-18 16:23:14 +01:00
|
|
|
};
|
2022-11-22 20:00:16 +01:00
|
|
|
|
|
|
|
services.nscd.enableNsncd = true;
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
}
|