Convert nix package list to own overlay

That should be more modern then the manual entry.
It actually allows to reference the "current" package states, e.g. from
other overlays with applied patches.

Installation is now not different from any other derivation:

    nix-env -i my-packages

Follow Thibaut advice, see: https://mamot.fr/@Thib/107717286778025122
and following posts
This commit is contained in:
Daniel Siepmann 2022-01-31 16:40:44 +01:00
parent a00f45ba95
commit d011e4db3e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 19 additions and 15 deletions

View file

@ -1,15 +0,0 @@
let
pkgs = import <nixpkgs> {};
inherit (pkgs) buildEnv;
in buildEnv {
name = "my packages";
paths = [ ]
# System tools
++ [ pkgs.dmenu pkgs.st pkgs.dunst pkgs.i3lock-color ]
# Dev tools
++ [ pkgs.litecli pkgs.mkcert ]
# Media
++ [ pkgs.vlc ]
;
}

View file

@ -0,0 +1,19 @@
self: super: {
myPackages = super.buildEnv {
name = "my-packages";
paths = [
# System tools
self.dmenu
self.st
self.dunst
self.i3lock-color
# Dev tools
self.litecli
self.mkcert
# Media
self.vlc
];
};
}