mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-30 06:21:28 +00:00
experiment with userdata flake input to override by caller
This commit is contained in:
parent
a822f97699
commit
afcec981bc
|
@ -6,14 +6,17 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs";
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||||||
selfprivacy-overlay.url =
|
selfprivacy-overlay.url =
|
||||||
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
|
"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 }:
|
outputs = { self, nixpkgs, selfprivacy-overlay, userdata-json }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations-fun = userdata: {
|
nixosConfigurations = {
|
||||||
just-nixos = nixpkgs.lib.nixosSystem {
|
just-nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit system selfprivacy-overlay userdata; };
|
specialArgs = { inherit system selfprivacy-overlay userdata; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue