From afcec981bc2eb0d169b17c520cfe233ff80df5ab Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 22 Aug 2023 20:32:25 +0400 Subject: [PATCH] experiment with userdata flake input to override by caller --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 257c873..46485b3 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };