-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (31 loc) · 1.15 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 = "Murad's Nix flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";
nixvim.url = "github:nix-community/nixvim";
};
outputs = inputs@{ self, darwin, home-manager, nixpkgs-unstable, nixvim, ... }: {
inherit self nixpkgs-unstable;
darwinConfigurations."kunafa" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = { inherit self nixpkgs-unstable; };
modules = [
./hosts/darwin/configuration.nix
home-manager.darwinModules.home-manager
nixvim.nixDarwinModules.nixvim
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
};
}