-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
executable file
·127 lines (126 loc) · 3.63 KB
/
flake.nix
File metadata and controls
executable file
·127 lines (126 loc) · 3.63 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hjem = {
url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nvf = {
url = "github:NotAShelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
# system things (WSL, darwin)
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
nprt.url = "github:thatsneat-dev/nprt";
llm-agents.url = "github:numtide/llm-agents.nix";
};
outputs =
{
self,
nixpkgs,
hjem,
home-manager,
nvf,
nixos-wsl,
nix-darwin,
nix-homebrew,
nprt,
llm-agents,
...
}@inputs:
{
pkgs.config.allowUnfree = true;
nixosConfigurations = {
# Inari - my WSL system
"inari" = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
# add our system configurations
./system/wsl.nix
# add our packages
./packages/wsl.nix
# source our home configs (hjem)
hjem.nixosModules.default
./home/hjem/wsl.nix
# add our nvf configurations
nvf.nixosModules.default
./modules/nvf/default.nix
# source wsl configurations
nixos-wsl.nixosModules.default
{
system.stateVersion = "24.11";
wsl = {
enable = true;
defaultUser = "taylor";
interop = {
includePath = true;
register = true;
};
};
}
];
};
# Fujin - my NixOS VM
"fujin" = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "aarch64-linux";
modules = [
# add hardware configurations
./hardware/aarch64-linux.nix
# add our system configurations
./system/aarch64-linux.nix
# add our packages
./packages/aarch64-linux.nix
# source our home configs (hjem)
hjem.nixosModules.default
{
hjem.users.taylor = ./home/hjem/aarch64-linux.nix;
}
# add our nvf configurations
nvf.nixosModules.default
./modules/nvf/default.nix
];
};
};
# Amaterasu - my darwin system
darwinConfigurations = {
"amaterasu" = nix-darwin.lib.darwinSystem {
specialArgs = { inherit inputs; };
modules = [
#nix-homebrew options
nix-homebrew.darwinModules.nix-homebrew
./system/darwin.nix
# packages
./packages/darwin.nix
# nvf
nvf.darwinModules.default
./modules/nvf/default.nix
# home manager
# home-manager.darwinModules.home-manager
# {
# # `home-manager` config
# home-manager = {
# minimal = true;
# useGlobalPkgs = true;
# useUserPackages = true;
# users.taylor = import ./home/hm/darwin.nix;
# };
# }
# source our home configs (hjem)
hjem.darwinModules.default
./home/hjem/default.nix
];
};
};
};
}