mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 00:51:23 +00:00
all flake inputs into nix.registry
This commit is contained in:
parent
049ecd3e32
commit
e1204fb065
34
flake.nix
34
flake.nix
|
@ -17,29 +17,29 @@
|
||||||
, etc-nixos
|
, etc-nixos
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, selfprivacy-overlay
|
, selfprivacy-overlay
|
||||||
}:
|
} @ inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
userdata =
|
userdata =
|
||||||
builtins.fromJSON (builtins.readFile "${etc-nixos}/userdata.json");
|
builtins.fromJSON (builtins.readFile "${etc-nixos}/userdata.json");
|
||||||
|
lib = nixpkgs.legacyPackages.${system}.lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations.just-nixos = nixpkgs.lib.nixosSystem {
|
||||||
just-nixos = nixpkgs.lib.nixosSystem {
|
specialArgs = { inherit system userdata; };
|
||||||
specialArgs = { inherit system userdata; };
|
modules = [
|
||||||
modules = [
|
# SelfPrivacy overlay
|
||||||
# SelfPrivacy overlay
|
{
|
||||||
{
|
nixpkgs.overlays = [ selfprivacy-overlay.overlay ];
|
||||||
nixpkgs.overlays = [ selfprivacy-overlay.overlay ];
|
environment.etc.selfprivacy-nixos-config-source.source =
|
||||||
environment.etc.selfprivacy-nixos-config-source.source =
|
etc-nixos.outPath;
|
||||||
etc-nixos.outPath;
|
nix.registry = lib.mapAttrs (_n: flake: { inherit flake; }) inputs;
|
||||||
}
|
}
|
||||||
# machine specifics
|
# machine specifics
|
||||||
"${etc-nixos}/hardware-configuration.nix"
|
"${etc-nixos}/hardware-configuration.nix"
|
||||||
# main configuration part
|
# main configuration part
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue