-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
90 lines (78 loc) · 2.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
description = "Nix Configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
flake-utils.url = "github:numtide/flake-utils?rev=13faa43c34c0c943585532dacbb457007416d50b";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager-secrets = {
url = "github:sudosubin/home-manager-secrets";
# url = "path:/home/sudosubin/Code/sudosubin/home-manager-secrets";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
inputs.lefthook.follows = "lefthook";
};
lefthook = {
url = "github:sudosubin/lefthook.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
inputs.flake-compat.follows = "flake-compat";
};
nixos-config-private-daangn = {
url = "git+ssh://git@github.com/sudosubin/nixos-config-private?ref=main&dir=daangn";
# url = "path:/Users/elvin/Code/sudosubin/nixos-config-private/daangn";
};
nixos-config-private-sudosubin = {
url = "git+ssh://git@github.com/sudosubin/nixos-config-private?ref=main&dir=sudosubin";
# url = "path:/Users/elvin/Code/sudosubin/nixos-config-private/sudosubin";
};
};
outputs = { self, nixpkgs, nixos-hardware, darwin, home-manager, ... }@inputs:
let
dev-shell = import ./libraries/dev-shell { inherit inputs; };
home-manager-shared = ./libraries/home-manager;
nixpkgs-shared = ./libraries/nixpkgs;
in
dev-shell // {
darwinConfigurations.darwin = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
home-manager-shared
nixpkgs-shared
home-manager.darwinModules.home-manager
./modules/shared/configuration.nix
./modules/darwin/configuration.nix
./modules/darwin/home.nix
];
specialArgs = { inherit inputs; };
};
nixosConfigurations.linux = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager-shared
nixpkgs-shared
home-manager.nixosModules.home-manager
./modules/shared/configuration.nix
./modules/linux/configuration.nix
./modules/linux/home.nix
];
specialArgs = { inherit inputs; };
};
};
}