forked from fediversity/fediversity
Compare commits
127 commits
098298a31c
...
5cd02be848
| Author | SHA1 | Date | |
|---|---|---|---|
| 5cd02be848 | |||
| 70cf39ea59 | |||
| 33b8834f7a | |||
| dfc88a4b2b | |||
| e8b861f4b9 | |||
| 67c115f4f6 | |||
| 8e17e8bc9b | |||
| 3fa61eed0e | |||
| c4f7957b47 | |||
| 96a69c628e | |||
| fb25554c7b | |||
| e091b18675 | |||
| 03a9c9b305 | |||
| 2b87ce0819 | |||
| 672c8ceafe | |||
| 9ddc71acc3 | |||
| 6da73f104f | |||
| 86ee3a987b | |||
| a721e80c73 | |||
| 3ee3458888 | |||
| 23bb4e8f51 | |||
| d4ce6258ba | |||
| 75a16cfdf8 | |||
| ecd4f319db | |||
| d217fa5df9 | |||
| 4c331a100f | |||
| 9f8177d8a4 | |||
| 79775c6b05 | |||
| e81be73fad | |||
| 3dd2412739 | |||
| b707168bf2 | |||
| 1eb570c42a | |||
| 0e22347713 | |||
| 276a376e3e | |||
| b8a1ce5b74 | |||
| 299682884d | |||
| bc7e062d94 | |||
| 495b750d76 | |||
| 77c46c0b32 | |||
| 774bae121e | |||
| 934e4189b5 | |||
| d8f5bc0a42 | |||
| 00aa2b9bec | |||
| a4d87f2fcc | |||
| 7c820bd5f8 | |||
| b271dc5414 | |||
| 59ab9ce863 | |||
| b1b5c3864a | |||
| d1a8dbf13c | |||
| 4a081113b3 | |||
| 0f791aa723 | |||
| 65f6a3f9b6 | |||
| 1949a50485 | |||
| 3cccd8b40f | |||
| 6385c56566 | |||
| e68d4b71a7 | |||
| 5123ec0f87 | |||
| 7f8b9abe71 | |||
| 81fb644a4b | |||
| b8737e552e | |||
| e72071e82d | |||
| 2e99d05cb0 | |||
| 296a5bdff1 | |||
| a94209e681 | |||
| 04e5bb58d6 | |||
| 80265a8432 | |||
| 54f45d05e5 | |||
| 81cfd8d6d9 | |||
| b97dcfe43a | |||
| a00190bc2c | |||
| d0534ef93a | |||
| 91488a6c4e | |||
| ae22484b72 | |||
| cefbbcd66e | |||
| 3a0d244324 | |||
| 9bb01de2df | |||
| 6439b097ce | |||
| 9e491f3eac | |||
| c9e4105a86 | |||
| c47c52c0ac | |||
| 4bdbab420a | |||
| cd38494486 | |||
| 1924eceebd | |||
| 8df7628fc1 | |||
| 509f70ce7b | |||
| da6b4205fa | |||
| f2617dc984 | |||
| 8918fb2301 | |||
| 7a31718c8c | |||
| 43d694c519 | |||
| 25027b200c | |||
| 4f506ee0fc | |||
| 8e37afc9d5 | |||
| 889932691a | |||
| ddf3b3713f | |||
| baaa9abb8f | |||
| de8ba56887 | |||
| 11a2604b8a | |||
| 9a24bc663f | |||
| 15e9a93a1f | |||
| 36bc294057 | |||
| 64f9c4e249 | |||
| 937796e822 | |||
| 762186ce06 | |||
| 97ee0e6878 | |||
| 7c5e85c0b6 | |||
| b1aa9668e3 | |||
| 5dad8e68cb | |||
| 439a379a4c | |||
| 826e1f0f0c | |||
| a82018a467 | |||
| 72a54bc093 | |||
| c0682276fc | |||
| ac1708cf2f | |||
| 8046781990 | |||
| 7d3b2d6b2d | |||
| 1ed616833a | |||
| d43decfdcd | |||
| 14d1b00ba2 | |||
| 7ede8ec7db | |||
| 9a42aed892 | |||
| 66dca2857f | |||
| dd1f5d4316 | |||
| b1da4cb8e8 | |||
| 272d62f2b8 | |||
| 67f77cab23 | |||
| ef7f52f8f4 |
24 changed files with 36 additions and 76 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
runNixOSTest,
|
runNixOSTest,
|
||||||
inputs,
|
inputs,
|
||||||
sources,
|
sources,
|
||||||
|
|
@ -10,10 +9,7 @@ runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
runNixOSTest,
|
runNixOSTest,
|
||||||
inputs,
|
inputs,
|
||||||
sources,
|
sources,
|
||||||
|
|
@ -10,10 +9,7 @@ runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
modulesPath,
|
|
||||||
sources,
|
sources,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -76,7 +75,7 @@ in
|
||||||
machine =
|
machine =
|
||||||
(pkgs.nixos [
|
(pkgs.nixos [
|
||||||
./targetNode.nix
|
./targetNode.nix
|
||||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
"${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix"
|
||||||
config.system.extraDependenciesFromModule
|
config.system.extraDependenciesFromModule
|
||||||
{
|
{
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
config,
|
config,
|
||||||
hostPkgs,
|
hostPkgs,
|
||||||
sources,
|
sources,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -115,7 +114,7 @@ in
|
||||||
(genAttrs config.targetMachines (_: {
|
(genAttrs config.targetMachines (_: {
|
||||||
imports = [
|
imports = [
|
||||||
./targetNode.nix
|
./targetNode.nix
|
||||||
] ++ (lib.optional config.useFlake "${modulesPath}/../lib/testing/nixos-test-base.nix");
|
] ++ (lib.optional config.useFlake "${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix");
|
||||||
_module.args = { inherit inputs sources; };
|
_module.args = { inherit inputs sources; };
|
||||||
enableAcme = config.enableAcme;
|
enableAcme = config.enableAcme;
|
||||||
acmeNodeIP = if config.enableAcme then config.nodes.acme.networking.primaryIPAddress else null;
|
acmeNodeIP = if config.enableAcme then config.nodes.acme.networking.primaryIPAddress else null;
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
sources = import ../../../npins;
|
||||||
testCerts = import "${inputs.nixpkgs}/nixos/tests/common/acme/server/snakeoil-certs.nix";
|
testCerts = import "${inputs.nixpkgs}/nixos/tests/common/acme/server/snakeoil-certs.nix";
|
||||||
inherit (lib) mkIf mkMerge;
|
inherit (lib) mkIf mkMerge;
|
||||||
|
|
||||||
|
|
@ -15,8 +15,7 @@ in
|
||||||
_class = "nixos";
|
_class = "nixos";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
"${modulesPath}/profiles/minimal.nix"
|
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
"${modulesPath}/profiles/qemu-guest.nix"
|
|
||||||
./sharedOptions.nix
|
./sharedOptions.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
sources,
|
sources,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -40,7 +39,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
./targetNode.nix
|
./targetNode.nix
|
||||||
(lib.modules.importJSON (config.pathToCwd + "/${config.nodeName}-network.json"))
|
(lib.modules.importJSON (config.pathToCwd + "/${config.nodeName}-network.json"))
|
||||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
"${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
_module.args = { inherit inputs sources; };
|
_module.args = { inherit inputs sources; };
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
sources ? import ../../../npins,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../common/sharedOptions.nix
|
../common/sharedOptions.nix
|
||||||
../common/targetNode.nix
|
../common/targetNode.nix
|
||||||
"${modulesPath}/profiles/qemu-guest.nix"
|
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users = environment.config.resources."operator-environment".login-shell.apply {
|
users.users = environment.config.resources."operator-environment".login-shell.apply {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
system,
|
system,
|
||||||
modulesPath,
|
|
||||||
inputs,
|
inputs,
|
||||||
sources ? import ../../../npins,
|
sources ? import ../../../npins,
|
||||||
...
|
...
|
||||||
|
|
@ -10,7 +9,7 @@ let
|
||||||
inherit (sources) nixpkgs;
|
inherit (sources) nixpkgs;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs.callPackage ../common/utils.nix { inherit modulesPath; }) mkNixosConfiguration;
|
inherit (pkgs.callPackage ../common/utils.nix { }) mkNixosConfiguration;
|
||||||
inherit (config)
|
inherit (config)
|
||||||
nodeName
|
nodeName
|
||||||
pathFromRoot
|
pathFromRoot
|
||||||
|
|
@ -18,7 +17,7 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
(pkgs.callPackage ../../utils.nix { inherit inputs; }).evalModel (
|
(pkgs.callPackage ../../utils.nix { inherit inputs; }).evalModel (
|
||||||
{ config, modulesPath, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ../common/model.nix ];
|
imports = [ ../common/model.nix ];
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -45,7 +44,7 @@ in
|
||||||
nixos.module = {
|
nixos.module = {
|
||||||
imports = [
|
imports = [
|
||||||
(mkNixosConfiguration environment required-resources)
|
(mkNixosConfiguration environment required-resources)
|
||||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
"${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
_module.args = { inherit inputs sources; };
|
_module.args = { inherit inputs sources; };
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
runNixOSTest,
|
runNixOSTest,
|
||||||
inputs,
|
inputs,
|
||||||
sources,
|
sources,
|
||||||
|
|
@ -12,10 +11,7 @@ runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs:
|
||||||
import ./mkFlake.nix inputs (
|
import ./mkFlake.nix inputs (
|
||||||
{ inputs, modulesPath, ... }:
|
{ inputs, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in
|
in
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
nixops4Deployments.check-deployment-model =
|
nixops4Deployments.check-deployment-model =
|
||||||
(import ./deployment/check/data-model-nixops4/data-model.nix {
|
(import ./deployment/check/data-model-nixops4/data-model.nix {
|
||||||
inherit system inputs modulesPath;
|
inherit system inputs;
|
||||||
config = {
|
config = {
|
||||||
inherit (import ./deployment/check/data-model-nixops4/constants.nix) pathToRoot pathFromRoot;
|
inherit (import ./deployment/check/data-model-nixops4/constants.nix) pathToRoot pathFromRoot;
|
||||||
nodeName = "nixops4";
|
nodeName = "nixops4";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
system,
|
system,
|
||||||
modulesPath,
|
|
||||||
sources ? import ../../../npins,
|
sources ? import ../../../npins,
|
||||||
...
|
...
|
||||||
}@args:
|
}@args:
|
||||||
|
|
@ -9,7 +8,7 @@ let
|
||||||
inherit (sources) nixpkgs;
|
inherit (sources) nixpkgs;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs.callPackage ../common/utils.nix { inherit modulesPath; }) mkNixosConfiguration;
|
inherit (pkgs.callPackage ../common/utils.nix { }) mkNixosConfiguration;
|
||||||
inherit (config)
|
inherit (config)
|
||||||
nodeName
|
nodeName
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
@ -18,7 +17,7 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
(pkgs.callPackage ../../utils.nix { }).evalModel (
|
(pkgs.callPackage ../../utils.nix { }).evalModel (
|
||||||
{ config, modulesPath, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ../common/model.nix ];
|
imports = [ ../common/model.nix ];
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -35,7 +34,7 @@ in
|
||||||
nixos-configuration = {
|
nixos-configuration = {
|
||||||
imports = [
|
imports = [
|
||||||
(mkNixosConfiguration environment required-resources)
|
(mkNixosConfiguration environment required-resources)
|
||||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
"${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
system = targetSystem;
|
system = targetSystem;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
runNixOSTest,
|
runNixOSTest,
|
||||||
inputs,
|
inputs,
|
||||||
sources,
|
sources,
|
||||||
|
|
@ -12,10 +11,7 @@ runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -9,7 +8,7 @@ let
|
||||||
nodeName = "ssh";
|
nodeName = "ssh";
|
||||||
deploy =
|
deploy =
|
||||||
(import ./data-model.nix {
|
(import ./data-model.nix {
|
||||||
inherit system modulesPath;
|
inherit system;
|
||||||
config = {
|
config = {
|
||||||
inherit nodeName;
|
inherit nodeName;
|
||||||
inherit (import ./constants.nix) pathToRoot;
|
inherit (import ./constants.nix) pathToRoot;
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,7 @@ pkgs.testers.runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
|
||||||
sources,
|
sources,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -18,7 +17,7 @@ let
|
||||||
# FIXME generate the image `nixos-generate` was to make, but now do it for a desired `-c configuration.nix` rather than whatever generic thing now
|
# FIXME generate the image `nixos-generate` was to make, but now do it for a desired `-c configuration.nix` rather than whatever generic thing now
|
||||||
template-deployment =
|
template-deployment =
|
||||||
(import ./setups/template.nix {
|
(import ./setups/template.nix {
|
||||||
inherit sources system modulesPath;
|
inherit sources system;
|
||||||
config = {
|
config = {
|
||||||
httpBackend = tfBackend "proxmox-test/upload";
|
httpBackend = tfBackend "proxmox-test/upload";
|
||||||
nodeName = "pve";
|
nodeName = "pve";
|
||||||
|
|
@ -29,7 +28,7 @@ let
|
||||||
}).default.tf-proxmox-template;
|
}).default.tf-proxmox-template;
|
||||||
vm-deployment =
|
vm-deployment =
|
||||||
(import ./setups/vm.nix {
|
(import ./setups/vm.nix {
|
||||||
inherit sources system modulesPath;
|
inherit sources system;
|
||||||
config = {
|
config = {
|
||||||
httpBackend = tfBackend "proxmox-test/nixos";
|
httpBackend = tfBackend "proxmox-test/nixos";
|
||||||
inherit (import ./constants.nix) pathToRoot;
|
inherit (import ./constants.nix) pathToRoot;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
system,
|
system,
|
||||||
modulesPath,
|
|
||||||
sources ? import ../../../../npins,
|
sources ? import ../../../../npins,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -9,7 +8,7 @@ let
|
||||||
inherit (sources) nixpkgs;
|
inherit (sources) nixpkgs;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs.callPackage ../../common/utils.nix { inherit modulesPath; }) mkNixosConfiguration;
|
inherit (pkgs.callPackage ../../common/utils.nix { inherit sources; }) mkNixosConfiguration;
|
||||||
inherit (config)
|
inherit (config)
|
||||||
nodeName
|
nodeName
|
||||||
targetSystem
|
targetSystem
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
system,
|
system,
|
||||||
modulesPath,
|
|
||||||
sources ? import ../../../../npins,
|
sources ? import ../../../../npins,
|
||||||
...
|
...
|
||||||
}@args:
|
}@args:
|
||||||
|
|
@ -9,7 +8,7 @@ let
|
||||||
inherit (sources) nixpkgs;
|
inherit (sources) nixpkgs;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs.callPackage ../../common/utils.nix { inherit modulesPath; }) mkNixosConfiguration;
|
inherit (pkgs.callPackage ../../common/utils.nix { inherit sources; }) mkNixosConfiguration;
|
||||||
inherit (config)
|
inherit (config)
|
||||||
nodeName
|
nodeName
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,13 @@
|
||||||
config,
|
config,
|
||||||
system,
|
system,
|
||||||
sources ? import ../../../npins,
|
sources ? import ../../../npins,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}@args:
|
}@args:
|
||||||
let
|
let
|
||||||
inherit (sources) nixpkgs;
|
inherit (sources) nixpkgs;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs.callPackage ../common/utils.nix { inherit modulesPath; }) mkNixosConfiguration;
|
inherit (pkgs.callPackage ../common/utils.nix { }) mkNixosConfiguration;
|
||||||
inherit (config)
|
inherit (config)
|
||||||
nodeName
|
nodeName
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
@ -19,7 +18,7 @@ let
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
(pkgs.callPackage ../../utils.nix { }).evalModel (
|
(pkgs.callPackage ../../utils.nix { }).evalModel (
|
||||||
{ config, modulesPath, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ../common/model.nix ];
|
imports = [ ../common/model.nix ];
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -35,7 +34,7 @@ in
|
||||||
nixos-configuration = {
|
nixos-configuration = {
|
||||||
imports = [
|
imports = [
|
||||||
(mkNixosConfiguration environment required-resources)
|
(mkNixosConfiguration environment required-resources)
|
||||||
"${modulesPath}/../lib/testing/nixos-test-base.nix"
|
"${sources.nixpkgs}/nixos/lib/testing/nixos-test-base.nix"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
system = targetSystem;
|
system = targetSystem;
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,7 @@ pkgs.testers.runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
sources,
|
sources,
|
||||||
modulesPath,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -12,7 +11,7 @@ let
|
||||||
backendPort = builtins.toString 8080;
|
backendPort = builtins.toString 8080;
|
||||||
deploy =
|
deploy =
|
||||||
(import ./data-model.nix {
|
(import ./data-model.nix {
|
||||||
inherit system modulesPath;
|
inherit system;
|
||||||
config = {
|
config = {
|
||||||
inherit nodeName pathToRoot;
|
inherit nodeName pathToRoot;
|
||||||
targetSystem = system;
|
targetSystem = system;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
runNixOSTest,
|
runNixOSTest,
|
||||||
inputs,
|
inputs,
|
||||||
sources,
|
sources,
|
||||||
|
|
@ -10,10 +9,7 @@ runNixOSTest {
|
||||||
../common/nixosTest.nix
|
../common/nixosTest.nix
|
||||||
./nixosTest.nix
|
./nixosTest.nix
|
||||||
];
|
];
|
||||||
_module.args = {
|
_module.args = { inherit inputs sources; };
|
||||||
inherit inputs sources;
|
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
|
||||||
inherit (import ./constants.nix)
|
inherit (import ./constants.nix)
|
||||||
targetMachines
|
targetMachines
|
||||||
pathToRoot
|
pathToRoot
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ runNixOSTest {
|
||||||
sources
|
sources
|
||||||
pkgs
|
pkgs
|
||||||
;
|
;
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
};
|
||||||
imports = [
|
imports = [
|
||||||
./proxmoxTest.nix
|
./proxmoxTest.nix
|
||||||
|
|
|
||||||
|
|
@ -14,27 +14,27 @@
|
||||||
|
|
||||||
deployment-basic = import ./check/basic {
|
deployment-basic = import ./check/basic {
|
||||||
inherit (pkgs.testers) runNixOSTest;
|
inherit (pkgs.testers) runNixOSTest;
|
||||||
inherit pkgs inputs sources;
|
inherit inputs sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment-cli = import ./check/cli {
|
deployment-cli = import ./check/cli {
|
||||||
inherit (pkgs.testers) runNixOSTest;
|
inherit (pkgs.testers) runNixOSTest;
|
||||||
inherit pkgs inputs sources;
|
inherit inputs sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment-panel = import ./check/panel {
|
deployment-panel = import ./check/panel {
|
||||||
inherit (pkgs.testers) runNixOSTest;
|
inherit (pkgs.testers) runNixOSTest;
|
||||||
inherit pkgs inputs sources;
|
inherit inputs sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment-model-ssh = import ./check/data-model-ssh {
|
deployment-model-ssh = import ./check/data-model-ssh {
|
||||||
inherit (pkgs.testers) runNixOSTest;
|
inherit (pkgs.testers) runNixOSTest;
|
||||||
inherit pkgs inputs sources;
|
inherit inputs sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment-model-nixops4 = import ./check/data-model-nixops4 {
|
deployment-model-nixops4 = import ./check/data-model-nixops4 {
|
||||||
inherit (pkgs.testers) runNixOSTest;
|
inherit (pkgs.testers) runNixOSTest;
|
||||||
inherit pkgs inputs sources;
|
inherit inputs sources;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment-model-tf = import ./check/data-model-tf {
|
deployment-model-tf = import ./check/data-model-tf {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
(lib.evalModules {
|
(lib.evalModules {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit pkgs inputs;
|
inherit pkgs inputs;
|
||||||
modulesPath = "${builtins.toString pkgs.path}/nixos/modules";
|
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./data-model.nix
|
./data-model.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue