mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-06 16:14:17 +00:00
add sp-extensions-json flake input
This commit is contained in:
parent
e1204fb065
commit
c20bef314e
|
@ -10,6 +10,8 @@
|
||||||
# the /etc/nixos folder input is expected to be set by the caller
|
# the /etc/nixos folder input is expected to be set by the caller
|
||||||
# for example, upon nix build using --override-input
|
# for example, upon nix build using --override-input
|
||||||
etc-nixos.flake = false;
|
etc-nixos.flake = false;
|
||||||
|
|
||||||
|
sp-extensions-json.flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -17,11 +19,14 @@
|
||||||
, etc-nixos
|
, etc-nixos
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, selfprivacy-overlay
|
, selfprivacy-overlay
|
||||||
|
, sp-extensions-json
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
userdata =
|
userdata =
|
||||||
builtins.fromJSON (builtins.readFile "${etc-nixos}/userdata.json");
|
builtins.fromJSON (builtins.readFile "${etc-nixos}/userdata.json");
|
||||||
|
sp-extensions =
|
||||||
|
builtins.fromJSON (builtins.readFile sp-extensions-json);
|
||||||
lib = nixpkgs.legacyPackages.${system}.lib;
|
lib = nixpkgs.legacyPackages.${system}.lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -30,7 +35,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
# SelfPrivacy overlay
|
# SelfPrivacy overlay
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [ selfprivacy-overlay.overlay ];
|
nixpkgs.overlays = builtins.trace (sp-extensions.mailserver) [ selfprivacy-overlay.overlay ];
|
||||||
environment.etc.selfprivacy-nixos-config-source.source =
|
environment.etc.selfprivacy-nixos-config-source.source =
|
||||||
etc-nixos.outPath;
|
etc-nixos.outPath;
|
||||||
nix.registry = lib.mapAttrs (_n: flake: { inherit flake; }) inputs;
|
nix.registry = lib.mapAttrs (_n: flake: { inherit flake; }) inputs;
|
||||||
|
|
Loading…
Reference in a new issue