summaryrefslogtreecommitdiff
path: root/modules/darwin/base/nix.nix
blob: dd593f9a25f79672544674b2c9e6fd42bd2e9394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  config,
  lib,
  inputs,
  ...
}: let
  cfg = config.base.nixSettings;
  enable = config.base.enable && cfg.enable;
in {
  config = lib.mkIf enable {
    # not sure why i have to force this
    environment.etc."nix/inputs/nixpkgs".source = lib.mkForce inputs.nixpkgs.outPath;

    services.nix-daemon.enable = true;
  };
}