-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
35 lines (31 loc) · 1.16 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 = "M1 Nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
emacs-overlay.url = "github:nix-community/emacs-overlay";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self, darwin, home-manager, nixpkgs, emacs-overlay, unstable, ... }: {
darwinConfigurations."M1MBP" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
# add 'unstable' as an argument that gets passed to modules
specialArgs = { unstable = unstable.legacyPackages.${system}; };
modules = [
./configuration.nix
home-manager.darwinModules.home-manager
{
nixpkgs.overlays = [
emacs-overlay.overlay
# fix PATH in `nix shell` https://github.com/NixOS/nixpkgs/pull/352666
(self: super: { fish = unstable.legacyPackages.${system}.fish; })
];
}
];
};
};
}