selfprivacy-nixos-config/flake.nix
2023-08-22 22:22:13 +04:00

28 lines
836 B
Nix

{
description = "Selfprivacy NixOS configuration flake";
inputs = {
#nixpkgs.url = "https://github.com/NixOS/nixpkgs/archive/eef86b8a942913a828b9ef13722835f359deef29.tar.gz";
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, userdata-json }:
let
system = "x86_64-linux";
userdata = builtins.fromJSON (builtins.readFile userdata-json);
in
{
nixosConfigurations = {
just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; };
modules = [ ./configuration.nix ];
};
};
};
}