mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +00:00
sp-extensions.json is read from /etc/nixos flake input
This commit is contained in:
parent
c20bef314e
commit
fcbde507fc
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue