Add pkgs overlay

This commit is contained in:
jalr 2021-11-16 14:51:21 +00:00 committed by Jakob Lechner
parent 230a7b3e78
commit 83bc46fd3a
3 changed files with 22 additions and 1 deletions

View file

@ -53,6 +53,8 @@
'';
};
}) // {
overlay = import ./pkgs;
nixosConfigurations = nixpkgs.lib.mapAttrs
(hostname: { system
, extraModules ? [ ]

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
nix = {
@ -15,6 +15,18 @@
autoOptimiseStore = true;
};
nixpkgs.overlays = with inputs; [
self.overlay
(final: prev: {
unstable = import nixpkgs-unstable {
inherit (config.nixpkgs)
config
overlays
system;
};
})
];
environment.systemPackages = with pkgs; [
cached-nix-shell
];

7
pkgs/default.nix Normal file
View file

@ -0,0 +1,7 @@
final: prev:
let
inherit (prev) callPackage;
in
{
mute-indicator = callPackage ./mute-indicator { };
}