mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-26 21:01:31 +00:00
28 lines
836 B
Nix
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 ];
|
|
};
|
|
};
|
|
};
|
|
}
|