summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2021-06-26 23:36:06 +0200
committerMinijackson <minijackson@riseup.net>2021-06-26 23:36:06 +0200
commit6cfc0e8a612e24574a8eb0547d0ef817b5659620 (patch)
treefbbfc659c37f6788767a18df3dc77105bff9b611
parentd95671222a7892db423849007021f7f4b41c5736 (diff)
downloadrobotnix-config-6cfc0e8a612e24574a8eb0547d0ef817b5659620.tar.gz
robotnix-config-6cfc0e8a612e24574a8eb0547d0ef817b5659620.zip
hydra: better attrset scheme
-rw-r--r--flake.nix91
1 files changed, 53 insertions, 38 deletions
diff --git a/flake.nix b/flake.nix
index 3f0a083..ccd6110 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,48 +3,63 @@
3 3
4 inputs.robotnix.url = "github:danielfullmer/robotnix"; 4 inputs.robotnix.url = "github:danielfullmer/robotnix";
5 5
6 outputs = { self, robotnix }: let 6 outputs = { self, robotnix }:
7 common = { 7 let
8 apps = { 8 common = {
9 bromite.enable = true; 9 apps = {
10 fdroid.enable = true; 10 bromite.enable = true;
11 seedvault.enable = true; 11 fdroid.enable = true;
12 }; 12 seedvault.enable = true;
13 };
14
15 microg.enable = true;
16
17 webview.bromite = {
18 enable = true;
19 availableByDefault = true;
20 };
13 21
14 microg.enable = true; 22 # signing.enable = true;
23 # signing.keyStorePath = "/var/secrets/android-keys"; # A _string_ of the path for the key store.
15 24
16 webview.bromite = { 25 # Build with ccache
17 enable = true; 26 ccache.enable = true;
18 availableByDefault = true;
19 }; 27 };
28 in
29 {
30 # "dailydriver" is an arbitrary user-chosen name for this particular
31 # configuration. Change it to something meaningful for you, perhaps just
32 # the device name if you only have one of this kind of device.
33 robotnixConfigurations.fp3 = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
34 device = "FP3";
35 flavor = "lineageos";
36 } // common);
20 37
21 # signing.enable = true; 38 robotnixConfigurations.fp2 = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
22 # signing.keyStorePath = "/var/secrets/android-keys"; # A _string_ of the path for the key store. 39 device = "FP2";
40 flavor = "lineageos";
41 } // common);
23 42
24 # Build with ccache 43 # This provides a convenient output which allows you to build the image by
25 ccache.enable = true; 44 # simply running "nix build" on this flake.
26 }; 45 # Build other outputs with (for example): "nix build .#robotnixConfigurations.dailydriver.ota"
27 in { 46 defaultPackage.x86_64-linux = self.robotnixConfigurations.fp3.img;
28 # "dailydriver" is an arbitrary user-chosen name for this particular 47
29 # configuration. Change it to something meaningful for you, perhaps just 48 hydraJobs.robotnixConfigurations = {
30 # the device name if you only have one of this kind of device. 49 fp3 = {
31 robotnixConfigurations.fp3 = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: { 50 inherit (self.robotnixConfigurations.fp3)
32 device = "FP3"; 51 bootImg
33 flavor = "lineageos"; 52 factoryImg
34 } // common); 53 img
35 54 ota;
36 robotnixConfigurations.fp2 = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: { 55 };
37 device = "FP2"; 56 fp2 = {
38 flavor = "lineageos"; 57 inherit (self.robotnixConfigurations.fp2)
39 } // common); 58 bootImg
40 59 factoryImg
41 # This provides a convenient output which allows you to build the image by 60 img
42 # simply running "nix build" on this flake. 61 ota;
43 # Build other outputs with (for example): "nix build .#robotnixConfigurations.dailydriver.ota" 62 };
44 defaultPackage.x86_64-linux = self.robotnixConfigurations.fp3.img; 63 };
45
46 hydraJobs = {
47 inherit (self.robotnixConfigurations) fp2 fp3;
48 }; 64 };
49 };
50} 65}