mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
tests: Refactor
This commit is contained in:
parent
33b2bed5a9
commit
8cf724fb97
3 changed files with 29 additions and 65 deletions
|
|
@ -1,30 +1,12 @@
|
|||
{
|
||||
inputs,
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
node.specialArgs = { inherit inputs self; };
|
||||
|
||||
defaults =
|
||||
{ nodes, config, ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [ self.nixosModules.default ];
|
||||
|
||||
_module.args.allHosts = nodes |> lib.mapAttrs (_: node: { config = node; });
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users.seb = {
|
||||
isNormalUser = true;
|
||||
password = "seb";
|
||||
};
|
||||
};
|
||||
|
||||
custom = {
|
||||
networking.underlay.interface = "eth1";
|
||||
|
||||
services = {
|
||||
nebula = {
|
||||
caCertificateFile = ./keys/nebula/ca.crt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue