apply deadnix

This commit is contained in:
Jörg Thalheim committed 2023-06-06 13:32:47 +02:00
1 parent 29d632d7e8
commit a8d85d9f89
15 files changed
+16 -29

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@
internal = true;
readOnly = true;
type = lib.types.functionTo diskoLib.jsonType;
default = dev: { };
default = _dev: { };
description = "Metadata";
};
_create = diskoLib.mkCreateOption {
+1 -1
View File
@@ -29,7 +29,7 @@
internal = true;
readOnly = true;
type = lib.types.functionTo diskoLib.jsonType;
default = dev: { };
default = _dev: { };
description = "Metadata";
};
_create = diskoLib.mkCreateOption {
+1 -1
View File
@@ -34,7 +34,7 @@
_config = lib.mkOption {
internal = true;
readOnly = true;
default = dev: [ ];
default = _dev: [ ];
description = "NixOS configuration";
};
_pkgs = lib.mkOption {
+1 -1
View File
@@ -34,7 +34,7 @@
_config = lib.mkOption {
internal = true;
readOnly = true;
default = dev: [ ];
default = _dev: [ ];
description = "NixOS configuration";
};
_pkgs = lib.mkOption {
+1 -1
View File
@@ -65,7 +65,7 @@
internal = true;
readOnly = true;
type = lib.types.functionTo (lib.types.listOf lib.types.package);
default = pkgs: [ ];
default = _pkgs: [ ];
description = "Packages";
};
};
+1 -1
View File
@@ -15,7 +15,7 @@
internal = true;
readOnly = true;
type = lib.types.functionTo diskoLib.jsonType;
default = dev: { };
default = _dev: { };
description = "Metadata";
};
_create = diskoLib.mkCreateOption {
+2 -2
View File
@@ -12,7 +12,7 @@
description = "The kind of partition table";
};
partitions = lib.mkOption {
type = lib.types.listOf (lib.types.submodule ({ config, ... }: {
type = lib.types.listOf (lib.types.submodule ({ ... }: {
options = {
part-type = lib.mkOption {
type = lib.types.enum [ "primary" "logical" "extended" ];
@@ -60,7 +60,7 @@
type = lib.types.functionTo diskoLib.jsonType;
default = dev:
lib.foldr lib.recursiveUpdate { } (lib.imap
(index: partition:
(_index: partition:
lib.optionalAttrs (partition.content != null) (partition.content._meta dev)
)
config.partitions);
+1 -1
View File
@@ -33,7 +33,7 @@
_config = lib.mkOption {
internal = true;
readOnly = true;
default = dev: [ ];
default = _dev: [ ];
description = "NixOS configuration";
};
_pkgs = lib.mkOption {
+1 -1
View File
@@ -33,7 +33,7 @@
internal = true;
readOnly = true;
type = lib.types.functionTo diskoLib.jsonType;
default = dev: { };
default = _dev: { };
description = "Metadata";
};
_create = diskoLib.mkCreateOption {
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, options, lib, diskoLib, rootMountPoint, ... }:
{ config, options, lib, diskoLib, ... }:
{
options = {
name = lib.mkOption {