Commit 59fcc51f7423

Vincent Demeester <vincent@sbr.pm>
2020-05-26 11:07:42
Use overlays in h-m and nixpkgs in nix-shell
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3a4ef5e
Changed files (3)
overlays/unstable.nix
@@ -1,7 +1,6 @@
 _: _:
 let
-  unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
-  unstable = import unstableTarball { overlays = [ ]; };
+  unstable = (import ./nix).pkgs-unstable { };
 in
 {
   inherit (unstable)
home.nix
@@ -12,6 +12,11 @@ in
       path = "${home-manager}";
     };
   };
+  nixpkgs.overlays = [
+    (import ./overlays/sbr.nix)
+    (import ./overlays/unstable.nix)
+    (import ./nix).emacs
+  ];
   imports = [
     # Default profile with default configuration
     ./modules/module-list.nix
shell.nix
@@ -1,6 +1,6 @@
 let
   sources = import ./nix;
-  pkgs = sources.pkgs { };
+  pkgs = sources.nixpkgs { };
 in
 pkgs.mkShell {
   name = "nix-config";