From 290c1c8116cd70cc248cf4bb9458611a16c5694a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 27 Aug 2020 21:10:56 +0200 Subject: Use niv for tracking channel versions This way the config is actually reproducible without manually tracking supported nixpkgs states. home-manager is now not installed environment-wide anymore but only available inside a nix-shell. --- home.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index 20f9bc9..40f0a2e 100644 --- a/home.nix +++ b/home.nix @@ -1,9 +1,16 @@ { config, pkgs, ... }: -{ - custom.pkgs = import { }; - custom.nixpkgs-unstable = import { }; +let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { }; + pkgs-unstable = import sources.nixpkgs-unstable { }; + pkgs-personal = import sources.mypkgs { }; +in { + _module.args.sources = sources; + _module.args.pkgs-unstable = pkgs-unstable; + _module.args.pkgs-personal = pkgs-personal; + imports = [ # define options custom to this config ./custom.nix @@ -18,7 +25,7 @@ keyboard.layout = "de"; packages = [ - config.custom.pkgs.persistent-nix-shell + pkgs-personal.persistent-nix-shell ]; }; -- cgit v1.2.3