From d4af9f4459e0e0502b044238d3d696142940af31 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Mon, 17 Jul 2023 04:19:57 +0400 Subject: [PATCH] attempt to readFile userdsata.json --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index d8f4818..277f726 100644 --- a/flake.nix +++ b/flake.nix @@ -6,18 +6,20 @@ nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; # selfprivacy-overlay.url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo/archive/22-11.tar.gz"; selfprivacy-overlay.url = "git+file:///data/selfprivacy/selfprivacy-nix-repo"; + # userdata-json.url = ./userdata/userdata.json; }; outputs = { self, nixpkgs, selfprivacy-overlay }: let system = "x86_64-linux"; - pkgs = import nixpkgs { inherit system; }; + # pkgs = import nixpkgs { inherit system; }; + userdata = builtins.fromJSON (builtins.readFile ./userdata/userdata.json); in { nixosConfigurations = { just-nixos = nixpkgs.lib.nixosSystem { - specialArgs = { inherit system; }; + specialArgs = { inherit system selfprivacy-overlay userdata; }; modules = [ ./configuration.nix ]; };