mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nix-info: install by default
This commit is contained in:
parent
d4f3a3a8a9
commit
e828743829
2 changed files with 17 additions and 0 deletions
|
@ -37,6 +37,7 @@ let
|
|||
./modules/networking
|
||||
./modules/nix
|
||||
./modules/nix/nix-darwin.nix
|
||||
./modules/nix/nix-info.nix
|
||||
./modules/nix/nixpkgs.nix
|
||||
./modules/environment
|
||||
./modules/launchd
|
||||
|
|
16
modules/nix/nix-info.nix
Normal file
16
modules/nix/nix-info.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
nix-info = pkgs.nix-info or null;
|
||||
in
|
||||
|
||||
{
|
||||
config = {
|
||||
|
||||
environment.systemPackages = mkIf (nix-info != null) [ nix-info ];
|
||||
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue