-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (34 loc) · 1.41 KB
/
flake.nix
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
34
35
{
description = "Configuration for my personal machines";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
darwin = { url = "github:LnL7/nix-darwin/master"; inputs.nixpkgs.follows = "nixpkgs"; };
disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; };
mac-app-util = { url = "github:hraban/mac-app-util"; inputs.nixpkgs.follows = "nixpkgs"; }; # Fixes spotlight loading
licenser = { url = "github:liamawhite/licenser"; inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs = { self, darwin, home-manager, nixpkgs, disko, mac-app-util, licenser }@inputs:
let
user = "liam";
email = "[email protected]";
darwinSystems = [ "aarch64-darwin" ];
darwinApps = import ./apps/darwin.nix { inherit self nixpkgs email; };
# linuxSystems = [ ];
in
{
apps = nixpkgs.lib.genAttrs darwinSystems darwinApps; # // nixpkgs.lib.genAttrs linuxSystems linuxApps;
darwinConfigurations = {
macos = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs // { inherit user email; };
modules = [
mac-app-util.darwinModules.default
home-manager.darwinModules.home-manager
./overlays
./hosts/darwin
];
};
};
};
}