Add lib.mkDefault for non configurable defaults #15

Merged
DashieTM merged 1 commit from mkDefault into main 2025-05-09 23:27:37 +02:00
DashieTM commented 2025-05-09 12:06:25 +02:00 (Migrated from github.com)
--- should fix: https://github.com/Xetibo/DashNix/issues/14
DashieTM commented 2025-05-09 12:06:47 +02:00 (Migrated from github.com)

waiting for response before merging.

waiting for response before merging.
thomas-zahner (Migrated from github.com) reviewed 2025-05-09 14:57:01 +02:00
@ -0,0 +1 @@
{lib, ...}: value: lib.mkOverride 999 value
thomas-zahner (Migrated from github.com) commented 2025-05-09 14:57:01 +02:00

999 means it has a very low precedence?

`999` means it has a very low precedence?
thomas-zahner (Migrated from github.com) approved these changes 2025-05-09 14:59:03 +02:00
thomas-zahner (Migrated from github.com) left a comment

Looks good to me

Looks good to me
DashieTM (Migrated from github.com) reviewed 2025-05-09 15:00:03 +02:00
@ -0,0 +1 @@
{lib, ...}: value: lib.mkOverride 999 value
DashieTM (Migrated from github.com) commented 2025-05-09 15:00:03 +02:00

yes, mkDefault is 1000, but that would conflict with the NixOS default, hence I use 1 below to create a new "default".
Did you test it?

yes, mkDefault is 1000, but that would conflict with the NixOS default, hence I use 1 below to create a new "default". Did you test it?
thomas-zahner (Migrated from github.com) reviewed 2025-05-09 15:12:31 +02:00
@ -0,0 +1 @@
{lib, ...}: value: lib.mkOverride 999 value
thomas-zahner (Migrated from github.com) commented 2025-05-09 15:12:31 +02:00

Ah that makes sense. Not yet.

Ah that makes sense. Not yet.
Sign in to join this conversation.
No description provided.