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";
selfprivacy-overlay.url =
"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
system = "x86_64-linux";
userdata = builtins.fromJSON (builtins.readFile userdata-json);
in
{
nixosConfigurations-fun = userdata: {
nixosConfigurations = {
just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; };