mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
25 lines
346 B
Nix
25 lines
346 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
in
|
|
|
|
{
|
|
options = {
|
|
|
|
nix.profile = mkOption { default = null; };
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
assertions =
|
|
[ { assertion = config.nix.profile == null; message = "nix.profile was renamed to nix.package"; }
|
|
];
|
|
|
|
nix.package = mkIf (config.nix.profile != null) config.nix.profile;
|
|
|
|
};
|
|
}
|