-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
167 lines (132 loc) · 4.29 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
inputs = {
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-anywhere.url = "github:nix-community/nixos-anywhere";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
impermanence.url = "github:nix-community/impermanence";
resonance = {
url = "github:simonwjackson/resonance";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets = {
url = "./secrets";
flake = false;
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
auto-cpufreq = {
url = "github:AdnanHodzic/auto-cpufreq";
inputs.nixpkgs.follows = "nixpkgs";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
disko.url = "github:nix-community/disko";
elevate = {
url = "github:simonwjackson/elevate";
inputs.nixpkgs.follows = "nixpkgs";
};
gamerack.url = "https://flakehub.com/f/simonwjackson/gamerack/*.tar.gz";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
icho = {
url = "github:simonwjackson/icho";
inputs.nixpkgs.follows = "nixpkgs";
};
mobile-nixos = {
url = "github:NixOS/mobile-nixos";
flake = false;
};
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-firefox-darwin.url = "github:bandithedoge/nixpkgs-firefox-darwin";
# INFO: https://github.com/snowfallorg/lib/issues/54#issuecomment-2067533982
nixpkgs-mobile-nixos.url = "github:nixos/nixpkgs/0c56c244409eb4424611f37953bfd03c2534bcce";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
ryujinx.url = "github:Naxdy/Ryujinx";
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master";
inputs = {nixpkgs.follows = "nixpkgs";};
};
snowfall-frost = {
url = "github:snowfallorg/frost";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
tmesh.url = "github:simonwjackson/tmesh";
};
outputs = inputs: let
snowfallOutputs = inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
systems.modules.nixos = with inputs; [
agenix.nixosModules.default
disko.nixosModules.default
home-manager.nixosModules.default
icho.nixosModules.default
impermanence.nixosModules.impermanence
nix-flatpak.nixosModules.nix-flatpak
nixos-facter-modules.nixosModules.facter
ryujinx.nixosModules.default
tmesh.nixosModules.default
];
systems.modules.darwin = with inputs; [
home-manager.darwinModules.default
icho.nixosModules.default
tmesh.nixosModules.default
];
systems.hosts.naka = {
channelName = "nixpkgs-mobile-nixos";
};
homes.modules = with inputs; [
# elevate.homeModules.service
];
overlays = with inputs; [
snowfall-frost.overlays.default
(final: prev: {
gamescope_git = chaotic.packages.${prev.system}.gamescope_git;
gamescope-wsi_git = chaotic.packages.${prev.system}.gamescope-wsi_git;
scaffold = prev.callPackage ./packages/scaffold {};
})
];
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [];
# Additional configuration for specific packages.
config = {
# For example, enable smartcard support in Firefox.
# firefox.smartcardSupport = true;
};
};
snowfall = {
namespace = "mountainous";
meta = {
name = "mountainous";
title = "My System Configs";
};
};
};
in
snowfallOutputs;
}