summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flake.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 2c43606..a98ec43 100644
--- a/flake.nix
+++ b/flake.nix
@@ -110,9 +110,63 @@
110 modules = [ 110 modules = [
111 self.nixosModules.test 111 self.nixosModules.test
112 self.nixosModules.profiles.server 112 self.nixosModules.profiles.server
113 {
114 # SMARTD doesn't work in QEMU
115 services.smartd.enable = false;
116 }
113 ]; 117 ];
114 }; 118 };
115 }; 119 };
116 120
121 hydraJobs = let
122 testing = import (nixpkgs + "/nixos/lib/testing-python.nix") { system = "x86_64-linux"; };
123 in {
124
125 tests.testDefault = testing.simpleTest {
126 machine = self.nixosModules.test;
127 testScript = ''
128 # TODO
129 '';
130 };
131
132 tests.testPlainDesktop = testing.simpleTest {
133 machine = { ... }: {
134 imports = [
135 self.nixosModules.test
136 self.nixosModules.profiles.desktop
137 ];
138 };
139 testScript = ''
140 # TODO
141 '';
142 };
143
144 tests.testDevDesktop = testing.simpleTest {
145 machine = { ... }: {
146 imports = [
147 self.nixosModules.test
148 self.nixosModules.profiles.desktop
149 self.nixosModules.usecases.desktop.development
150 ];
151 };
152 testScript = ''
153 # TODO
154 '';
155 };
156
157 tests.testServer = testing.simpleTest {
158 machine = { ... }: {
159 imports = [
160 self.nixosModules.test
161 self.nixosModules.profiles.server
162 ];
163 };
164 testScript = ''
165 # TODO
166 '';
167 };
168
169 };
170
117 }; 171 };
118} 172}