diff options
author | aszlig <aszlig@nix.build> | 2017-11-12 17:37:53 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2017-11-12 17:49:31 +0100 |
commit | 2a09a44a4494e54a03ce891e9c92cc6542f74227 (patch) | |
tree | ee9325462fa7fda37e1e46cfeb8008b08eb28e97 /modules | |
parent | fa56aefe3944ab484d1da82f42e9cdb5352541c7 (diff) |
pkgs: Remove the vuizvui namespace
It's a bit weird to need to write something like this: nix-build pkgs -A vuizvui.aszlig.vim We're already within vuizvui, and the filesystem paths are already structured in a way so that the above is in pkgs/aszlig/vim, so the need to add the vuizvui attribute to that seems quite pointless and unnatural. I have tested this by evaluating a few machines, tests and packages. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/common.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/core/common.nix b/modules/core/common.nix index f19b5119..f394b038 100644 --- a/modules/core/common.nix +++ b/modules/core/common.nix @@ -35,14 +35,10 @@ with lib; }; }; - config = let - nixpkgs = import ../../nixpkgs-path.nix; - system = config.nixpkgs.system; - - in { + config = { # Expose all packages in ../../pkgs as pkgs.vuizvui in modules. - nixpkgs.overlays = singleton (self: const { - inherit (import ../../pkgs { pkgs = self; }) vuizvui; + nixpkgs.overlays = singleton (pkgs: const { + vuizvui = import ../../pkgs { inherit pkgs; }; }); nix.binaryCaches = options.nix.binaryCaches.default ++ [ @@ -65,7 +61,7 @@ with lib; channelPath = "${rootChannelsPath}/${config.vuizvui.channelName}"; nixosConfig = "/etc/nixos/configuration.nix"; nixpkgsConfig = "nixpkgs-config=${pkgs.writeText "nixpkgs-config.nix" '' - (import ${nixpkgs}/nixos/lib/eval-config.nix { + (import ${pkgs.path}/nixos/lib/eval-config.nix { modules = [ ${nixosConfig} ]; }).config.nixpkgs.config ''}"; |