Provide a custom derivation as "configuration"

This allows to have a list the current installed set of derivations.
Instead of using nix-env like apt.

Use `nix-env -i -f configuration.nix` to install this derivation.
It will then install defined "packages".

This eases to maintain current system and port to NixOS or something
else in the future.
This commit is contained in:
Daniel Siepmann 2022-01-31 12:48:17 +01:00
parent 29f64f8c21
commit caadcbba78
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

15
configuration.nix Normal file
View file

@ -0,0 +1,15 @@
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 ]
;
}