mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-10-15 19:37:19 +02:00
treewide: remove 'with lib;'
This commit is contained in:
parent
cf54323dc7
commit
78ae241387
53 changed files with 245 additions and 245 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue