dev.fron.io rc / b0243ce
profiles(hydra): use dev flake Tony Olagbaiye 6 months ago
3 changed file(s) with 88 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
750750 },
751751 "hydra": {
752752 "inputs": {
753 "nix": [
754 "nix"
755 ],
753 "nix": "nix",
756754 "nixpkgs": [
755 "hydra",
757756 "nix",
758757 "nixpkgs"
759758 ]
854853 },
855854 "lisp": {
856855 "inputs": {
857 "nixpkgs": "nixpkgs_2"
856 "nixpkgs": "nixpkgs_3"
858857 },
859858 "locked": {
860859 "lastModified": 1607800657,
902901 "type": "github"
903902 }
904903 },
904 "lowdown-src_3": {
905 "flake": false,
906 "locked": {
907 "lastModified": 1598695561,
908 "narHash": "sha256-gyH/5j+h/nWw0W8AcR2WKvNBUsiQ7QuxqSJNXAwV+8E=",
909 "owner": "kristapsdz",
910 "repo": "lowdown",
911 "rev": "1705b4a26fbf065d9574dce47a94e8c7c79e052f",
912 "type": "github"
913 },
914 "original": {
915 "owner": "kristapsdz",
916 "repo": "lowdown",
917 "type": "github"
918 }
919 },
905920 "master": {
906921 "locked": {
907922 "lastModified": 1609617021,
10061021 "nix": {
10071022 "inputs": {
10081023 "lowdown-src": "lowdown-src",
1009 "nixpkgs": "nixpkgs_3"
1010 },
1011 "locked": {
1012 "lastModified": 1606826948,
1013 "narHash": "sha256-mRCRXXcS3AD8PeXbLtN2lz7ONDGrrgrtbxmt2+0tzfw=",
1014 "owner": "nixos",
1024 "nixpkgs": "nixpkgs_2"
1025 },
1026 "locked": {
1027 "lastModified": 1609520816,
1028 "narHash": "sha256-IGO7tfJXsv9u2wpW76VCzOsHYapRZqH9pHGVsoffPrI=",
1029 "owner": "NixOS",
10151030 "repo": "nix",
1016 "rev": "cbab2885290ed0f96b1e75f2fe0a191b8cd4f350",
1017 "type": "github"
1018 },
1019 "original": {
1020 "owner": "nixos",
1021 "ref": "progress-bar",
1022 "repo": "nix",
1023 "type": "github"
1031 "rev": "8a2ce0f455da32bc20978e68c0aad9efb4560abc",
1032 "type": "github"
1033 },
1034 "original": {
1035 "id": "nix",
1036 "type": "indirect"
10241037 }
10251038 },
10261039 "nix-ipfs": {
10271040 "inputs": {
1028 "lowdown-src": "lowdown-src_2",
1029 "nixpkgs": "nixpkgs_4"
1041 "lowdown-src": "lowdown-src_3",
1042 "nixpkgs": "nixpkgs_5"
10301043 },
10311044 "locked": {
10321045 "lastModified": 1602773364,
10431056 "type": "github"
10441057 }
10451058 },
1059 "nix_2": {
1060 "inputs": {
1061 "lowdown-src": "lowdown-src_2",
1062 "nixpkgs": "nixpkgs_4"
1063 },
1064 "locked": {
1065 "lastModified": 1606826948,
1066 "narHash": "sha256-mRCRXXcS3AD8PeXbLtN2lz7ONDGrrgrtbxmt2+0tzfw=",
1067 "owner": "nixos",
1068 "repo": "nix",
1069 "rev": "cbab2885290ed0f96b1e75f2fe0a191b8cd4f350",
1070 "type": "github"
1071 },
1072 "original": {
1073 "owner": "nixos",
1074 "ref": "progress-bar",
1075 "repo": "nix",
1076 "type": "github"
1077 }
1078 },
10461079 "nixpkgs": {
10471080 "locked": {
10481081 "lastModified": 1607522989,
10611094 },
10621095 "nixpkgs_2": {
10631096 "locked": {
1097 "lastModified": 1602702596,
1098 "narHash": "sha256-fqJ4UgOb4ZUnCDIapDb4gCrtAah5Rnr2/At3IzMitig=",
1099 "owner": "NixOS",
1100 "repo": "nixpkgs",
1101 "rev": "ad0d20345219790533ebe06571f82ed6b034db31",
1102 "type": "github"
1103 },
1104 "original": {
1105 "id": "nixpkgs",
1106 "ref": "nixos-20.09-small",
1107 "type": "indirect"
1108 }
1109 },
1110 "nixpkgs_3": {
1111 "locked": {
10641112 "lastModified": 1607018170,
10651113 "narHash": "sha256-C9VzUgeVCfNrzij2exmWupx8RNu7wxNbD8eReMLGy9I=",
10661114 "owner": "nixos",
10751123 "type": "github"
10761124 }
10771125 },
1078 "nixpkgs_3": {
1126 "nixpkgs_4": {
10791127 "locked": {
10801128 "lastModified": 1608102263,
10811129 "narHash": "sha256-vUFG/KDGvewBfWkyM9zMs4Y+wZgx97PCYIxU5+UU9Y8=",
10901138 "type": "indirect"
10911139 }
10921140 },
1093 "nixpkgs_4": {
1141 "nixpkgs_5": {
10941142 "locked": {
10951143 "lastModified": 1591633336,
10961144 "narHash": "sha256-oVXv4xAnDJB03LvZGbC72vSVlIbbJr8tpjEW5o/Fdek=",
15461594 "mozilla": "mozilla",
15471595 "naersk": "naersk",
15481596 "napalm": "napalm",
1549 "nix": "nix",
1597 "nix": "nix_2",
15501598 "nix-ipfs": "nix-ipfs",
15511599 "nyxt": "nyxt",
15521600 "pr75800": "pr75800",
3838 naersk.url = "github:nmattia/naersk"; #|- Naersk
3939 naersk.inputs.nixpkgs.follows = "/master"; #|
4040
41 hydra.url = "github:nixos/hydra"; #|- Hydra
42 hydra.inputs.nix.follows = "/nix"; #|
43 hydra.inputs.nixpkgs.follows = "/nix/nixpkgs"; #|
44
4541 guix.url = "github:emiller88/guix"; #|- Guix
4642 guix.inputs.nixpkgs.follows = "/master"; #|
4743
4844 construct.url = "github:matrix-construct/construct"; #|- Construct
4945 construct.inputs.nixpkgs.follows = "/large"; #|
46
47 hydra.url = "github:nixos/hydra"; #|- Hydra
5048
5149 apparmor.url = "github:bqv/apparmor-nix"; #|- Apparmor
5250
244242 nix-ipfs = inputs.nix-ipfs.packages.${system}.nix;
245243 nix-ipfs-static = inputs.nix-ipfs.packages.${system}.nix-static;
246244 })
245 inputs.hydra.overlay (final: prev: {
246 hydra-unstable = inputs.hydra.defaultPackage.${system};
247 })
247248 inputs.guix.overlay
248249 inputs.construct.overlay (final: prev: {
249250 riot-web = final.element-web;
600601 inherit (inputs.guix.nixosModules) guix;
601602 inherit (inputs.construct.nixosModules) matrix-construct;
602603 inherit (inputs.agenix.nixosModules) age;
604 hydra = "${inputs.hydra}/hydra-module.nix";
603605 apparmor-nix = inputs.apparmor.nixosModule;
604606
605607 # Some common basic stuff
729731
730732 systemModules = flakeModules ++ [
731733 core global iwd gnupg
732 dwarffs guix matrix-construct impermanence age apparmor-nix
734 dwarffs guix matrix-construct hydra
735 impermanence age apparmor-nix
733736 ];
734737
735738 userModules = [
22 let
33 cfg = config.services.hydra;
44 in {
5 services.hydra = lib.mkIf cfg.enable {
5 disabledModules = [
6 "services/continuous-integration/hydra/default.nix"
7 ];
8
9 options.services.hydra.enable = lib.mkEnableOption "Hydra services";
10
11 config.services.hydra-dev = lib.mkIf cfg.enable {
12 enable = true;
613 package = pkgs.hydra-unstable.overrideAttrs (drv: {
714 postUnpack = ''
815 sed -i 's/restrictEval = true/restrictEval = false/' source/src/hydra-eval-jobs/hydra-eval-jobs.cc
2330 '';
2431 };
2532
26 nix.allowedUsers = lib.mkIf cfg.enable [ "hydra" "hydra-www" ];
33 config.nix.allowedUsers = lib.mkIf cfg.enable [ "@hydra" ];
2734 }