aboutsummaryrefslogtreecommitdiff
path: root/modules/flake/darwin.nix
blob: 84eb74d69fe126c16e280ee0b8a0bac22148a259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ inputs, config, self, ... }:

{
  flake.darwinConfigurations = {
    lilith = inputs.nix-darwin.lib.darwinSystem {
      system = "aarch64-darwin";
      specialArgs = { inherit inputs; host = "lilith"; };
      modules = [
        inputs.home-manager.darwinModules.home-manager
        {
          home-manager.extraSpecialArgs = { inherit inputs; };
          home-manager.sharedModules = [ config.flake.homeModules.default ];
        }
        (self + /hosts/lilith/configuration.nix)
        {
          nixpkgs.config.allowUnfree = true;
          nix.settings.experimental-features = [ "nix-command" "flakes" ];
        }
      ];
    };
  };
}