summaryrefslogtreecommitdiff
path: root/modules/alias.nix
blob: 17fb00b8ef44115e5af2848a5a0c3ef923ae34fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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;

  };
}