-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (49 loc) · 1.48 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
description = "Nix darwin flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:nix-darwin/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
fzf-git-sh = {
url = "https://raw.githubusercontent.com/junegunn/fzf-git.sh/28b544a7b6d284b8e46e227b36000089b45e9e00/fzf-git.sh";
flake = false;
};
yamb-yazi = {
url = "github:h-hg/yamb.yazi";
flake = false;
};
};
outputs = inputs@{ nixpkgs, nix-darwin, home-manager, fzf-git-sh, yamb-yazi, ... }:
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
fzf-git-sh-package = pkgs.writeShellScriptBin "fzf-git.sh" (builtins.readFile fzf-git-sh);
in
{
darwinConfigurations."MacBook-Pro" = nix-darwin.lib.darwinSystem {
inherit system;
modules = [
./system.nix
home-manager.darwinModules.home-manager
{
users.users.vaporif = {
name = "vaporif";
home = "/Users/vaporif";
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit fzf-git-sh-package yamb-yazi;
};
users.vaporif = import ./home.nix;
};
}
];
};
};
}