aboutsummaryrefslogtreecommitdiff
path: root/modules/flake/darwin.nix
blob: cc59bf6aaed31ab09b7abe400d218f97933610e4 (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
26
27
28
29
30
31
32
33
{
  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"
          ];
        }
      ];
    };
  };
}