mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
moved overlay definition and made overlays more transparent
This commit is contained in:
parent
f00500a8e6
commit
545bdf1f6e
@ -1,12 +1,4 @@
|
||||
{ pkgs, name, system, flakes, flakeOutputs, ...}:
|
||||
let
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import flakes.nixpkgs-unstable {
|
||||
system = "${system}";
|
||||
config.allowUnfree=true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{ pkgs, extraOverlays, name, flakes, flakeOutputs, ...}:
|
||||
{ config, pkgs, lib, ...}:
|
||||
{
|
||||
imports =
|
||||
@ -57,7 +49,7 @@ in
|
||||
};
|
||||
};
|
||||
nixpkgs = {
|
||||
overlays = [ flakes.emacs-overlay.overlay overlay-unstable flakeOutputs.overlay ];
|
||||
overlays = [ flakes.emacs-overlay.overlay flakeOutputs.overlay ] ++ extraOverlays;
|
||||
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"skypeforlinux"
|
||||
"teams"
|
||||
|
||||
@ -5,9 +5,15 @@ let
|
||||
name = if builtins.isString args then args else args.name;
|
||||
system = if args ? system then args.system else "x86_64-linux";
|
||||
extraModules = if args ? extraModules then args.extraModules else [ ];
|
||||
extraOverlays = if args ? extraOverlays then args.extraOverlays else [ ];
|
||||
extraOverlays = if args ? extraOverlays then args.extraOverlays else [ overlay-unstable ];
|
||||
pkgs = flakes.nixpkgs;
|
||||
configuration = if args ? configuration then args.configuration else import ./baseconfiguration.nix {inherit extraOverlays system pkgs name flakes flakeOutputs;} ;
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import flakes.nixpkgs-unstable {
|
||||
system = "${system}";
|
||||
config.allowUnfree=true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit name;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user