attempt to readFile userdsata.json

This commit is contained in:
Alexander Tomokhov 2023-07-17 04:19:57 +04:00
parent ee2a895c61
commit d4af9f4459

View file

@ -6,18 +6,20 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11"; 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 = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo/archive/22-11.tar.gz";
selfprivacy-overlay.url = "git+file:///data/selfprivacy/selfprivacy-nix-repo"; selfprivacy-overlay.url = "git+file:///data/selfprivacy/selfprivacy-nix-repo";
# userdata-json.url = ./userdata/userdata.json;
}; };
outputs = { self, nixpkgs, selfprivacy-overlay }: outputs = { self, nixpkgs, selfprivacy-overlay }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; # pkgs = import nixpkgs { inherit system; };
userdata = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
in in
{ {
nixosConfigurations = { nixosConfigurations = {
just-nixos = nixpkgs.lib.nixosSystem { just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system; }; specialArgs = { inherit system selfprivacy-overlay userdata; };
modules = [ ./configuration.nix ]; modules = [ ./configuration.nix ];
}; };