selfprivacy-nixos-config/flake.nix

28 lines
836 B
Nix
Raw Normal View History

2023-07-15 12:52:46 +00:00
{
description = "Selfprivacy NixOS configuration flake";
inputs = {
#nixpkgs.url = "https://github.com/NixOS/nixpkgs/archive/eef86b8a942913a828b9ef13722835f359deef29.tar.gz";
2023-07-17 00:58:26 +00:00
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;
2023-07-15 12:52:46 +00:00
};
outputs = { self, nixpkgs, selfprivacy-overlay, userdata-json }:
2023-07-15 12:52:46 +00:00
let
system = "x86_64-linux";
userdata = builtins.fromJSON (builtins.readFile userdata-json);
2023-07-15 12:52:46 +00:00
in
{
nixosConfigurations = {
2023-07-15 12:52:46 +00:00
just-nixos = nixpkgs.lib.nixosSystem {
2023-07-17 00:19:57 +00:00
specialArgs = { inherit system selfprivacy-overlay userdata; };
2023-07-15 12:52:46 +00:00
modules = [ ./configuration.nix ];
};
};
};
}