sp-extensions.json is read from /etc/nixos flake input

This commit is contained in:
Alexander Tomokhov 2023-11-08 20:58:31 +04:00
parent c20bef314e
commit fcbde507fc

View file

@ -10,8 +10,6 @@
# the /etc/nixos folder input is expected to be set by the caller
# for example, upon nix build using --override-input
etc-nixos.flake = false;
sp-extensions-json.flake = false;
};
outputs =
@ -19,14 +17,13 @@
, etc-nixos
, nixpkgs
, selfprivacy-overlay
, sp-extensions-json
} @ inputs:
let
system = "x86_64-linux";
userdata =
builtins.fromJSON (builtins.readFile "${etc-nixos}/userdata.json");
sp-extensions =
builtins.fromJSON (builtins.readFile sp-extensions-json);
builtins.fromJSON (builtins.readFile "${etc-nixos}/sp-extensions.json");
lib = nixpkgs.legacyPackages.${system}.lib;
in
{