Skip to content

Commit 247bcfd

Browse files
SuperSandro2000astro
authored andcommitted
Change mem and cpu to positive ints only
1 parent 7249357 commit 247bcfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nixos-modules/microvm/options.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ in
9393
vcpu = mkOption {
9494
description = "Number of virtual CPU cores";
9595
default = 1;
96-
type = types.int;
96+
type = types.ints.positive;
9797
};
9898

9999
mem = mkOption {
100100
description = "Amount of RAM in megabytes";
101101
default = 512;
102-
type = types.int;
102+
type = types.ints.positive;
103103
};
104104

105105
hugepageMem = mkOption {

0 commit comments

Comments
 (0)