treewide: remove 'with lib;'

This commit is contained in:
Felix Buehler 2025-09-21 18:40:36 +02:00
parent cf54323dc7
commit 78ae241387
53 changed files with 245 additions and 245 deletions

View file

@ -8,8 +8,8 @@ let
cfg = config.my.hardware.bluetooth;
in
{
options.my.hardware.bluetooth = with lib; {
enable = mkEnableOption "bluetooth configuration";
options.my.hardware.bluetooth = {
enable = lib.mkEnableOption "bluetooth configuration";
};
config = lib.mkIf cfg.enable {

View file

@ -8,8 +8,8 @@ let
cfg = config.my.hardware.debug;
in
{
options.my.hardware.debug = with lib; {
enable = mkEnableOption "hardware-debug configuration";
options.my.hardware.debug = {
enable = lib.mkEnableOption "hardware-debug configuration";
};
config = lib.mkIf cfg.enable {

View file

@ -3,11 +3,11 @@ let
cfg = config.my.hardware.drive-monitor;
in
{
options.my.hardware.drive-monitor = with lib; {
enable = mkEnableOption "drive-monitor configuration";
options.my.hardware.drive-monitor = {
enable = lib.mkEnableOption "drive-monitor configuration";
OnFailureMail = mkOption {
type = types.nullOr types.str;
OnFailureMail = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "Mail address where to send the error report";
default = null;
example = "alarm@mail.com";

View file

@ -3,16 +3,16 @@ let
cfg = config.my.hardware.firmware;
in
{
options.my.hardware.firmware = with lib; {
enable = mkEnableOption "firmware configuration";
options.my.hardware.firmware = {
enable = lib.mkEnableOption "firmware configuration";
cpuFlavor = mkOption {
type =
with types;
nullOr (enum [
cpuFlavor = lib.mkOption {
type = lib.types.nullOr (
lib.types.enum [
"intel"
"amd"
]);
]
);
default = null;
example = "intel";
description = "Which kind of CPU to activate micro-code updates";

View file

@ -8,15 +8,15 @@ let
cfg = config.my.hardware.graphics;
in
{
options.my.hardware.graphics = with lib; {
enable = mkEnableOption "graphics configuration";
cpuFlavor = mkOption {
type =
with types;
nullOr (enum [
options.my.hardware.graphics = {
enable = lib.mkEnableOption "graphics configuration";
cpuFlavor = lib.mkOption {
type = lib.types.nullOr (
lib.types.enum [
"amd"
"intel"
]);
]
);
default = null;
example = "intel";
description = "Which kind of GPU";

View file

@ -3,8 +3,8 @@ let
cfg = config.my.hardware.id-card;
in
{
options.my.hardware.id-card = with lib; {
enable = mkEnableOption "german id card authentication";
options.my.hardware.id-card = {
enable = lib.mkEnableOption "german id card authentication";
};
config = lib.mkIf cfg.enable {