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";
|
2023-08-22 16:32:25 +00:00
|
|
|
userdata-json.url = "path:./userdata.json";
|
|
|
|
userdata-json.flake = false;
|
2023-07-15 12:52:46 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 16:32:25 +00:00
|
|
|
outputs = { self, nixpkgs, selfprivacy-overlay, userdata-json }:
|
2023-07-15 12:52:46 +00:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2023-08-22 16:32:25 +00:00
|
|
|
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
2023-07-15 12:52:46 +00:00
|
|
|
in
|
|
|
|
{
|
2023-08-22 16:32:25 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|