flake: merge shared overlay config
This commit is contained in:
parent
a79d27ff22
commit
ff673a0890
39
flake.nix
39
flake.nix
|
@ -33,10 +33,24 @@
|
|||
|
||||
outputs = { self, nixpkgs, home-manager, ... } @inputs: {
|
||||
|
||||
nixosConfigurations = {
|
||||
nixosConfigurations =
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
shared_overlays = [
|
||||
(self: super: {
|
||||
packages = import ./pkgs { pkgs = super; };
|
||||
|
||||
# packages accessible through pkgs.unstable.package
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
in {
|
||||
|
||||
poseidon = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
inherit system;
|
||||
modules = [
|
||||
./poseidon.nix
|
||||
|
||||
|
@ -51,14 +65,6 @@
|
|||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
packages = import ./pkgs { pkgs = super; };
|
||||
|
||||
# packages accessible through pkgs.unstable.package
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
fastPython3 = self.python3.override {
|
||||
enableOptimizations = true;
|
||||
reproducibleBuild = false;
|
||||
|
@ -70,13 +76,13 @@
|
|||
python3 = self.fastPython3;
|
||||
};
|
||||
})
|
||||
];
|
||||
] ++ shared_overlays;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
boreal = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
inherit system;
|
||||
modules = [
|
||||
./boreal.nix
|
||||
|
||||
|
@ -93,13 +99,6 @@
|
|||
inputs.emacs-overlay.overlay
|
||||
|
||||
(self: super: {
|
||||
packages = import ./pkgs { pkgs = super; };
|
||||
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
steam = self.unstable.steam;
|
||||
})
|
||||
|
||||
|
@ -109,7 +108,7 @@
|
|||
# (self: super: {
|
||||
# stdenv = super.impureUseNativeOptimizations super.stdenv;
|
||||
# })
|
||||
];
|
||||
] ++ shared_overlays;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue