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
|
@ -9,8 +9,8 @@ let
|
|||
cfg = config.my.system.avahi;
|
||||
in
|
||||
{
|
||||
options.my.system.avahi = with lib; {
|
||||
enable = mkEnableOption "avahi configuration";
|
||||
options.my.system.avahi = {
|
||||
enable = lib.mkEnableOption "avahi configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
|
@ -10,8 +10,8 @@ let
|
|||
cfg = config.my.system.docker;
|
||||
in
|
||||
{
|
||||
options.my.system.docker = with lib; {
|
||||
enable = mkEnableOption "docker configuration";
|
||||
options.my.system.docker = {
|
||||
enable = lib.mkEnableOption "docker configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
|
@ -8,11 +8,11 @@ let
|
|||
cfg = config.my.system.fonts;
|
||||
in
|
||||
{
|
||||
options.my.system.fonts = with lib; {
|
||||
enable = mkEnableOption "fonts configuration";
|
||||
options.my.system.fonts = {
|
||||
enable = lib.mkEnableOption "fonts configuration";
|
||||
|
||||
additionalFonts = mkOption {
|
||||
type = types.listOf types.package;
|
||||
additionalFonts = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ ];
|
||||
example = "fira";
|
||||
description = "Which additional fonts should be added as well";
|
||||
|
|
|
@ -3,16 +3,16 @@ let
|
|||
cfg = config.my.system.kvm;
|
||||
in
|
||||
{
|
||||
options.my.system.kvm = with lib; {
|
||||
enable = mkEnableOption "kvm configuration";
|
||||
options.my.system.kvm = {
|
||||
enable = lib.mkEnableOption "kvm 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 kernelModules";
|
||||
|
|
|
@ -10,8 +10,8 @@ let
|
|||
cfg = config.my.system.miracast;
|
||||
in
|
||||
{
|
||||
options.my.system.miracast = with lib; {
|
||||
enable = mkEnableOption "miracast configuration";
|
||||
options.my.system.miracast = {
|
||||
enable = lib.mkEnableOption "miracast configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
|
@ -10,8 +10,8 @@ let
|
|||
cfg = config.my.system.podman;
|
||||
in
|
||||
{
|
||||
options.my.system.podman = with lib; {
|
||||
enable = mkEnableOption "podman configuration";
|
||||
options.my.system.podman = {
|
||||
enable = lib.mkEnableOption "podman configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
|
@ -10,8 +10,8 @@ let
|
|||
cfg = config.my.system.spell-check;
|
||||
in
|
||||
{
|
||||
options.my.system.spell-check = with lib; {
|
||||
enable = mkEnableOption "spell-check configuration";
|
||||
options.my.system.spell-check = {
|
||||
enable = lib.mkEnableOption "spell-check configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue