1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00
nix-darwin/modules/alias.nix
2017-10-18 23:36:39 +02:00

25 lines
363 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
in
{
options = {
nix.profile = mkOption { internal = true; 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;
};
}