-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·194 lines (166 loc) · 5.55 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
{
description = "overcomplicated mess of a flake that works for some reason";
inputs = {
# Nixpkgs Unstable
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Nixpkgs Stable
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-24.11";
# Home-manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix User Repository
nur.url = "github:nix-community/NUR";
# Nix helper
nh.url = "github:viperML/nh";
# Stylix, nix-colors alertnative
stylix.url = "github:danth/stylix";
# NixOS WSL, a way to use nix powers on windows
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
# Waybar, the wayland bar
waybar.url = "github:/alexays/waybar";
# Nixcord, a way to manage vencord plugins nix way
nixcord.url = "github:kaylorben/nixcord";
# A solution to your Wayland Wallpaper Woes
swww.url = "github:LGFae/swww";
# Zen Browser, a modern web browser
zen-browser.url = "github:0xc000022070/zen-browser-flake";
# Ghostty, an overhyped modern terminal emulator
ghostty.url = "github:ghostty-org/ghostty";
# Hyprsunset, a hyprland way to manage screen temperature
hyprsunset.url = "github:hyprwm/hyprsunset";
astal-shell.url = "github:xhos/astal";
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
kwin-effects-forceblur = {
url = "github:taj-ny/kwin-effects-forceblur";
inputs.nixpkgs.follows = "nixpkgs";
};
# nixvim = {
# url = "github:xhos/nixvim";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# Sops-nix, secrets management
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Spicetify, a spotify theming tool
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland, the modern compositor for wayland
# hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
# Hyprgrass, hyprland touch gestures plugin
# hyprgrass = {
# url = "github:horriblename/hyprgrass";
# inputs.hyprland.follows = "hyprland";
# };
# Hyprpicker, color picker for hyprland
# hyprpicker.url = "github:hyprwm/hyprpicker";
# Colorscheme generator
# matugen.url = "github:InioX/matugen?ref=v2.2.0";
# Cosmic, an unfinished, but promising de
# nixpkgs.follows = "nixos-cosmic/nixpkgs";
# nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
# Priavte secrets repository
nix-secrets = {
url = "git+ssh://[email protected]/xhos/nix-secrets?shallow=1&ref=main";
flake = false;
};
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
home-manager,
nixos-wsl,
...
} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
pkgsStable = import nixpkgs-stable {inherit system;};
in {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
# Or 'nh os switch'
nixosConfigurations = {
zireael = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
home-manager.nixosModule
./hosts/zireael/configuration.nix
];
};
vyverne = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
home-manager.nixosModule
# inputs.nixos-cosmic.nixosModules.default
./hosts/vyverne/configuration.nix
];
};
aevon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/aevon/configuration.nix
home-manager.nixosModule
nixos-wsl.nixosModules.default
];
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
# Or 'nh home switch'
homeConfigurations = {
"xhos@zireael" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs;};
modules = [
./home/xhos/zireael.nix
inputs.sops-nix.homeManagerModules.sops
inputs.nixcord.homeManagerModules.nixcord
inputs.stylix.homeManagerModules.stylix
];
};
"xhos@vyverne" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
overlays = [
inputs.hyprpanel.overlay
];
};
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs;};
modules = [
./home/xhos/vyverne.nix
inputs.plasma-manager.homeManagerModules.plasma-manager
inputs.sops-nix.homeManagerModules.sops
inputs.nixcord.homeManagerModules.nixcord
inputs.stylix.homeManagerModules.stylix
];
};
"xhos@aevon" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs;};
modules = [
./home/xhos/aevon.nix
inputs.stylix.homeManagerModules.stylix
];
};
};
};
}