diff options
author | Minijackson <minijackson@riseup.net> | 2021-05-27 20:28:28 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-05-27 20:28:28 +0200 |
commit | 4f200320f358b678a6993866128c579061137b21 (patch) | |
tree | 4f85db2d148f6d8dd869739e984c1798b897f0f3 | |
parent | 2a8b6f4ad27463231a96c7e2739619d4a01fadc1 (diff) | |
download | nixos-config-reborn-4f200320f358b678a6993866128c579061137b21.tar.gz nixos-config-reborn-4f200320f358b678a6993866128c579061137b21.zip |
flake.nix: add some hydra jobs
-rw-r--r-- | flake.nix | 54 |
1 files changed, 54 insertions, 0 deletions
@@ -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 | } |