forked from Fediversity/Fediversity
Small clean up around VM ids
This commit is contained in:
parent
bdf43717fa
commit
5aa6ca3ae6
2 changed files with 2 additions and 7 deletions
|
@ -1,12 +1,7 @@
|
||||||
{ inputs, self, ... }:
|
{ inputs, self, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
allVmIds = # 100 -- 255
|
allVmIds = builtins.genList (x: 100 + x) 156; # 100 -- 255
|
||||||
let
|
|
||||||
allVmIdsFrom = x: if x > 255 then [ ] else [ x ] ++ allVmIdsFrom (x + 1);
|
|
||||||
in
|
|
||||||
allVmIdsFrom 100;
|
|
||||||
|
|
||||||
makeInstaller = import ./makeInstaller.nix;
|
makeInstaller = import ./makeInstaller.nix;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
|
@ -16,7 +16,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
procolix = {
|
procolix = {
|
||||||
vmid = mkOption {
|
vmid = mkOption {
|
||||||
type = types.int;
|
type = types.ints.between 100 255;
|
||||||
description = ''
|
description = ''
|
||||||
Identifier of the machine. This is a number between 100 and 255.
|
Identifier of the machine. This is a number between 100 and 255.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Reference in a new issue