1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 08:46:25 +00:00

nix: add to systemPackages when nix.package is set

This commit is contained in:
Daiderd Jordan 2018-01-13 18:18:48 +01:00
parent ad3891f07a
commit 59421c7d76
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,6 @@
pkgs.kwm
pkgs.nix-repl
config.nix.package
];
services.khd.enable = true;

View file

@ -46,7 +46,7 @@ in
{
options = {
nix.package = mkOption {
type = types.path;
type = types.either types.package types.path;
default = "/nix/var/nix/profiles/default";
example = "pkgs.nix";
description = ''
@ -322,6 +322,9 @@ in
"/nix/var/nix/profiles/per-user/root/channels"
]);
environment.systemPackages = mkIf (isDerivation cfg.package)
[ cfg.package ];
environment.etc."nix/nix.conf".source = nixConf;
# List of machines for distributed Nix builds in the format