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

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;
};
}