nix metapackage works

This commit is contained in:
Jeffrey Paul 2020-05-26 00:35:49 -07:00
parent 22de9e5fac
commit 9acfb54dfb
2 changed files with 15 additions and 29 deletions

View File

@ -28,7 +28,7 @@ curl -L https://nixos.org/nix/install | sh
source /home/user/.nix-profile/etc/profile.d/nix.sh
# this should install all the packages from the config.nix:
nix-env -i workEnv
nix-env -i myPackages
# FIXME have this pull from synced dir instead
# oh-my-zsh

View File

@ -1,33 +1,17 @@
{ pkgs }:
let
# Inherit utilities
inherit (pkgs) lib buildEnv;
{
packageOverrides = pkgs: with pkgs; {
homeDir = builtins.getEnv "HOME";
in {
allowUnfree = true;
#jre = pkgs.oraclejre8;
#jdk = pkgs.oraclejdk8;
packageOverrides = pkgs: {
workEnv = lib.lowPrio (buildEnv {
name = "work-env";
ignoreCollisions = true;
paths = with pkgs; [
sneakDefaultPkgs
weechat
];
});
sneakDefaultPkgs = lib.lowPrio (buildEnv {
name = "sneakDefaultPkgs";
ignoreCollisions = true;
paths = with pkgs; [
myPackages = pkgs.buildEnv {
name = "myPackages";
paths = [
aspell
bc
clang
coreutils
ctags
curl
ffmpeg
gdb
gitAndTools.git-annex
gitAndTools.git-extras
gitAndTools.git2cl
@ -35,16 +19,18 @@ in {
gitAndTools.tig
gnupg
go
jq
nix-prefetch-scripts
nix-repl
openssh
pwgen
qemu
tmux
tree
vim
weechat
wget
];
});
};
};
}