1
0
Fork 0

Generate list of machines from machines subdir

This commit is contained in:
Nicolas Jeannerod 2025-02-25 11:53:51 +01:00
parent 2e346d1de7
commit 4e30363c5f
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 5 additions and 17 deletions

View file

@ -13,13 +13,9 @@ everything will become much cleaner.
above 100. For instance, `fedi117`.
2. Add a basic configuration for the machine. These typically go in
`infra/<name>/default.nix`. You can look at other `fediXXX` VMs to find
inspiration. You probably do not need a `nixos.module` option at this point.
3. Add the machine to a deployment. This takes place in `infra/flake-parts.nix`.
Please remember to also update the table at the end of this file.
FIXME: Generate the table automatically (https://git.fediversity.eu/Fediversity/Fediversity/issues/89)
`infra/machines/<name>/default.nix`. You can look at other `fediXXX` VMs to
find inspiration. You probably do not need a `nixos.module` option at this
point.
2. Add a file for each of those VM's public keys, eg.
```

View file

@ -6,6 +6,7 @@
}:
let
inherit (builtins) readDir;
inherit (lib)
attrNames
mkOption
@ -115,16 +116,7 @@ let
;
};
machines = [
"vm02116"
"vm02179"
"vm02186"
"vm02187"
"fedi200"
"fedi201"
];
machines = attrNames (readDir ./machines);
testMachineConfigurations = import ./test-machines/configuration.nix;
in