summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2021-05-30 16:57:22 +0200
committerMinijackson <minijackson@riseup.net>2021-05-30 16:57:22 +0200
commitbc6191454133e4e72413479ab9f6ee122010f6d9 (patch)
tree02847f2236a964747f28b77fdeb820325e05821e
parentb15e415ed43a9a3c98678e01da1a0c0e614b4bb9 (diff)
downloadnixos-config-reborn-bc6191454133e4e72413479ab9f6ee122010f6d9.tar.gz
nixos-config-reborn-bc6191454133e4e72413479ab9f6ee122010f6d9.zip
flake.nix: fmt
-rw-r--r--flake.nix134
1 files changed, 68 insertions, 66 deletions
diff --git a/flake.nix b/flake.nix
index faf9ead..3006e5b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -124,79 +124,81 @@
124 }; 124 };
125 }; 125 };
126 126
127 hydraJobs = let 127 hydraJobs =
128 testing = import (nixpkgs + "/nixos/lib/testing-python.nix") { system = "x86_64-linux"; }; 128 let
129 in { 129 testing = import (nixpkgs + "/nixos/lib/testing-python.nix") { system = "x86_64-linux"; };
130 130 in
131 tests.testDefault = testing.simpleTest { 131 {
132 machine = self.nixosModules.test; 132
133 testScript = '' 133 tests.testDefault = testing.simpleTest {
134 # TODO 134 machine = self.nixosModules.test;
135 machine.wait_for_unit("multi-user.target") 135 testScript = ''
136 ''; 136 # TODO
137 }; 137 machine.wait_for_unit("multi-user.target")
138 '';
139 };
138 140
139 tests.testPlainDesktop = testing.simpleTest { 141 tests.testPlainDesktop = testing.simpleTest {
140 machine = { ... }: { 142 machine = { ... }: {
141 imports = [ 143 imports = [
142 self.nixosModules.test 144 self.nixosModules.test
143 self.nixosModules.profiles.desktop 145 self.nixosModules.profiles.desktop
144 self.nixosModules.usecases.common.fwupd 146 self.nixosModules.usecases.common.fwupd
145 ]; 147 ];
148 };
149 testScript = ''
150 # TODO
151 machine.wait_for_unit("multi-user.target")
152 '';
146 }; 153 };
147 testScript = ''
148 # TODO
149 machine.wait_for_unit("multi-user.target")
150 '';
151 };
152 154
153 tests.testDevDesktop = testing.simpleTest { 155 tests.testDevDesktop = testing.simpleTest {
154 machine = { ... }: { 156 machine = { ... }: {
155 imports = [ 157 imports = [
156 self.nixosModules.test 158 self.nixosModules.test
157 self.nixosModules.profiles.desktop 159 self.nixosModules.profiles.desktop
158 self.nixosModules.usecases.common.fwupd 160 self.nixosModules.usecases.common.fwupd
159 self.nixosModules.usecases.desktop.development 161 self.nixosModules.usecases.desktop.development
160 ]; 162 ];
163 };
164 testScript = ''
165 # TODO
166 machine.wait_for_unit("multi-user.target")
167 '';
161 }; 168 };
162 testScript = ''
163 # TODO
164 machine.wait_for_unit("multi-user.target")
165 '';
166 };
167 169
168 tests.testServer = testing.simpleTest { 170 tests.testServer = testing.simpleTest {
169 machine = { ... }: { 171 machine = { ... }: {
170 imports = [ 172 imports = [
171 self.nixosModules.test 173 self.nixosModules.test
172 self.nixosModules.profiles.server 174 self.nixosModules.profiles.server
173 self.nixosModules.usecases.server.ankisyncd 175 self.nixosModules.usecases.server.ankisyncd
174 self.nixosModules.usecases.server.gotifyServer 176 self.nixosModules.usecases.server.gotifyServer
175 self.nixosModules.usecases.server.hydraServer 177 self.nixosModules.usecases.server.hydraServer
176 self.nixosModules.usecases.server.radicale 178 self.nixosModules.usecases.server.radicale
177 self.nixosModules.usecases.server.zfs 179 self.nixosModules.usecases.server.zfs
178 180
179 { 181 {
180 # Needed for ZFS 182 # Needed for ZFS
181 networking.hostId = "4e98920d"; 183 networking.hostId = "4e98920d";
182 184
183 services.hydra = { 185 services.hydra = {
184 hydraURL = "localhost:3000"; 186 hydraURL = "localhost:3000";
185 notificationSender = "hydra@localhost"; 187 notificationSender = "hydra@localhost";
186 secretKeyLocation = builtins.toFile 188 secretKeyLocation = builtins.toFile
187 "secret-key" 189 "secret-key"
188 "testServer:0d5jJjOxIoe6sTr2YKWkQxsM3ZcW+9GAk52yYNVxfYBUxS2nUfzfQk5Jo0OwHnT95bTLXCVNQETGV4m6KHsVCA=="; 190 "testServer:0d5jJjOxIoe6sTr2YKWkQxsM3ZcW+9GAk52yYNVxfYBUxS2nUfzfQk5Jo0OwHnT95bTLXCVNQETGV4m6KHsVCA==";
189 }; 191 };
190 } 192 }
191 ]; 193 ];
194 };
195 testScript = ''
196 # TODO
197 machine.wait_for_unit("multi-user.target")
198 '';
192 }; 199 };
193 testScript = ''
194 # TODO
195 machine.wait_for_unit("multi-user.target")
196 '';
197 };
198 200
199 }; 201 };
200 202
201 }; 203 };
202} 204}