-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
59 lines (56 loc) · 1.61 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
52
53
54
55
56
57
58
59
{
description = "personal nix configuration";
inputs = {
base.url = "github:ojsef39/nix-base";
# base.url = "/Users/josefhofer/CodeProjects/github.com/ojsef39/nix-base/";
nixpkgs.follows = "base/nixpkgs";
darwin.follows = "base/darwin";
home-manager.follows = "base/home-manager";
};
outputs = { self, base, ... }: let
vars = {
user = "josefhofer";
full_name = "Josef Hofer";
email = "[email protected]";
git = {
ghq = "CodeProjects";
url = "";
nix = "~/${vars.git.ghq}/github.com/ojsef39/nix-personal";
};
kitty.project_selector = "~/.config";
is_vm = false;
};
system.darwin.aarch = "aarch64-darwin";
in {
darwinConfigurations = {
"mac" = base.inputs.darwin.lib.darwinSystem {
system = system.darwin.aarch;
modules = base.outputs.sharedModules ++ base.outputs.macModules ++ [
({ vars, ... }: {
home-manager.users.${vars.user} = import ./hosts/shared/import.nix;
})
./hosts/darwin/import.nix
(import ./hosts/darwin/homebrew.nix)
];
specialArgs = { inherit vars system; };
};
};
# Uncomment and adjust the following section if needed
# nixosConfigurations = {
# "linux" = nixpkgs.lib.nixosSystem {
# system = system.nixos.aarch;
# modules = [
# base.baseModules
# {
# programs.bash = {
# enable = true;
# shellAliases = {
# open = "xdg-open";
# };
# };
# }
# ];
# };
# };
};
}