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:
parent
ad3891f07a
commit
59421c7d76
2 changed files with 4 additions and 2 deletions
|
@ -44,7 +44,6 @@
|
|||
pkgs.kwm
|
||||
|
||||
pkgs.nix-repl
|
||||
config.nix.package
|
||||
];
|
||||
|
||||
services.khd.enable = true;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue