Skip to content

Commit cf8da3a

Browse files
committed
Add overlays.nix
1 parent d512848 commit cf8da3a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
./configuration.nix
3131
./modules/sysconf.nix
3232
inputs.home-manager.nixosModules.default
33+
(import "${self}/pkgs/overlays.nix" { inherit inputs; })
3334
]
3435
++ prop.modules;
3536
};

pkgs/overlays.nix

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{ inputs, ... }:
2+
let
3+
pkgs-unstable = _: prev: {
4+
pkgs-unstable = import (inputs.nixpkgs-unstable) {
5+
inherit (prev.stdenv) system;
6+
};
7+
};
8+
in
9+
{
10+
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
11+
nixpkgs = {
12+
overlays = [
13+
pkgs-unstable
14+
];
15+
};
16+
}

0 commit comments

Comments
 (0)