experiment with userdata flake input to override by caller

This commit is contained in:
Alexander Tomokhov 2023-08-22 20:32:25 +04:00
parent a822f97699
commit afcec981bc

View file

@ -6,14 +6,17 @@
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs";
selfprivacy-overlay.url = selfprivacy-overlay.url =
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git"; "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
userdata-json.url = "path:./userdata.json";
userdata-json.flake = false;
}; };
outputs = { self, nixpkgs, selfprivacy-overlay }: outputs = { self, nixpkgs, selfprivacy-overlay, userdata-json }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
userdata = builtins.fromJSON (builtins.readFile userdata-json);
in in
{ {
nixosConfigurations-fun = userdata: { nixosConfigurations = {
just-nixos = nixpkgs.lib.nixosSystem { just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; }; specialArgs = { inherit system selfprivacy-overlay userdata; };