-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
168 lines (134 loc) · 4.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
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
{
description = "brenix's Nix/NixOS Config";
inputs = {
# Base packages
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Lix
lix = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hardware support
hardware.url = "github:nixos/nixos-hardware";
# Home-manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Nix user repository
nur.url = "github:nix-community/NUR";
# Snowfall lib
snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
# MacOS support
darwin.url = "github:LnL7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
# SOPS (secrets)
sops-nix.url = "github:mic92/sops-nix";
# Bleeding edge packages (linux-cachyos)
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
# textfox
textfox.url = "github:adriankarlen/textfox";
# Impermanence
impermanence.url = "github:nix-community/impermanence";
# OpenGL wrapper for nix
# nixgl.url = "github:nix-community/nixGL";
# Colorscheme management
stylix.url = "github:danth/stylix";
# Catppuccin colorscheme
catppuccin.url = "github:catppuccin/nix";
# Nix index database
nix-index-database.url = "github:nix-community/nix-index-database";
# Declarative disk management
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
# Remote installation support
nixos-anywhere.url = "github:numtide/nixos-anywhere";
nixos-anywhere.inputs.nixpkgs.follows = "nixpkgs";
nixos-anywhere.inputs.disko.follows = "disko";
# Hyprland - Cursor
hyprcursor.url = "github:hyprwm/Hyprcursor";
hyprcursor.inputs.nixpkgs.follows = "nixpkgs";
# Hyprland - Idle
# hypridle.url = "github:hyprwm/Hypridle";
# hypridle.inputs.nixpkgs.follows = "nixpkgs";
# Hyprland - Scratchpad and Extras
# pyprland.url = "github:hyprland-community/pyprland";
# pyprland.inputs.nixpkgs.follows = "nixpkgs";
# Hyprland - Main
hyprland-git.url = "github:hyprwm/hyprland";
hyprland-xdph-git.url = "github:hyprwm/xdg-desktop-portal-hyprland";
hyprland-protocols-git.url = "github:hyprwm/xdg-desktop-portal-hyprland";
hyprland-nix.url = "github:spikespaz/hyprland-nix";
hyprland-nix.inputs.hyprland.follows = "hyprland-git";
hyprland-nix.inputs.hyprland-xdph.follows = "hyprland-xdph-git";
hyprland-nix.inputs.hyprland-protocols.follows = "hyprland-protocols-git";
# Labwc configuration
labwc-manager.url = "github:JaydenPahukula/labwc-manager";
# Talhelper
talhelper.url = "github:budimanjojo/talhelper";
# Ghostty
ghostty = {
url = "github:ghostty-org/ghostty";
};
};
outputs = inputs: let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
snowfall = {
metadata = "matrix";
namespace = "matrix";
meta = {
name = "matrix";
title = "brenix's Nix Flake";
};
};
};
in
lib.mkFlake {
channels-config = {
allowUnfree = true;
};
systems.modules.nixos = with inputs; [
home-manager.nixosModules.home-manager
disko.nixosModules.disko
impermanence.nixosModules.impermanence
sops-nix.nixosModules.sops
chaotic.nixosModules.default
{
# manually import overlay
chaotic.nyx.overlay.enable = false;
}
];
systems.modules.darwin = with inputs; [
home-manager.darwinModules.home-manager
];
systems.hosts.neo.modules = with inputs; [
hardware.nixosModules.common-cpu-amd
hardware.nixosModules.common-gpu-amd
hardware.nixosModules.common-pc-ssd
];
systems.hosts.morpheus.modules = with inputs; [
hardware.nixosModules.framework-13-7040-amd
];
systems.hosts.trinity.modules = with inputs; [
hardware.nixosModules.common-cpu-intel
hardware.nixosModules.common-pc-ssd
];
homes.modules = with inputs; [
catppuccin.homeManagerModules.catppuccin
stylix.homeManagerModules.stylix
labwc-manager.homeManagerModule
textfox.homeManagerModules.default
];
overlays = with inputs; [
# nixgl.overlay
lix.overlays.default
chaotic.overlays.default
nur.overlays.default
talhelper.overlays.default
];
outputs-builder = channels: {
formatter = channels.nixpkgs.alejandra;
};
};
}