Skip to content

Commit 8fd2cff

Browse files
committed
net.nix: Add placeholder for network.lock
1 parent 553fa63 commit 8fd2cff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

nix/machine-resource.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
with lib;
77

88
{
9-
freeformType = lib.types.raw or lib.types.unspecified;
9+
# A freeformType is probably not helpful because it may traverse into a
10+
# machine config, triggering errors in attributes that should never be accessed,
11+
# which results in very obscure errors.
12+
# freeformType = lib.types.raw or lib.types.unspecified;
1013
options = {
1114

1215
};

nix/net.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ in
5252
Extra configurations to add to all resources.
5353
'';
5454
};
55+
lock = mkOption {
56+
# TBD
57+
type = types.raw;
58+
default = {};
59+
};
5560
};
5661
resources = mkOption {
5762
default = { };

0 commit comments

Comments
 (0)