-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
132 lines (118 loc) · 3.21 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
{
description = "NixOS Configuration";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-24.11";
};
nixpkgs-unstable = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
nixos-hardware = {
url = "github:nixos/nixos-hardware";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
ref = "refs/tags/v0.46.2";
# inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins/v0.46.0";
inputs.hyprland.follows = "hyprland";
};
hyprland-systeminfo = {
url = "github:hyprwm/hyprsysteminfo/v0.1.2";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprlock = {
url = "github:hyprwm/hyprlock/v0.5.0";
};
hypridle = {
url = "github:hyprwm/hypridle/v0.1.5";
};
alacritty-theme = {
url = "github:alexghr/alacritty-theme.nix";#/2cd654fa494fc8ecb226ca1e7c5f91cf1cebbba9";
};
waybar = {
type = "git";
url = "https://github.com/Alexays/Waybar";
ref = "refs/tags/0.11.0";
inputs.nixpkgs.follows = "nixpkgs";
};
matugen = {
url = "github:InioX/matugen?ref=v2.4.1";
};
ghostty = {
url = "github:ghostty-org/ghostty";
};
};
outputs =
{ self
, nixpkgs
, home-manager
, nixos-hardware
, alacritty-theme
, hyprland
, hypridle
, hyprlock
, hyprland-systeminfo
, waybar
, matugen
, ghostty
, nixpkgs-unstable
, ...
} @ inputs:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = import nixpkgs { system = "${system}"; config.allowUnfree = true; };
in
{
nixosModules = import ./modules { lib = nixpkgs.lib; };
nixosConfigurations = {
thor = lib.nixosSystem {
inherit system; # Framework
modules = [
./hosts/thor/configuration.nix
home-manager.nixosModules.home-manager
nixos-hardware.nixosModules.framework-12th-gen-intel
];
specialArgs = {
inherit inputs;
};
};
odin = lib.nixosSystem {
inherit system; #Desktop
modules = [
./hosts/odin/configuration.nix
home-manager.nixosModules.home-manager
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-pc-ssd
];
specialArgs = { inherit inputs; };
};
tyr = lib.nixosSystem {
inherit system; #Dashboard Server
modules = [
./hosts/tyr/configuration.nix
home-manager.nixosModules.home-manager
];
specialArgs = { inherit inputs; };
};
yggdrasil = lib.nixosSystem {
inherit system; #Nginx Proxy for internal
modules = [
./hosts/yggdrasil/configuration.nix
home-manager.nixosModules.home-manager
];
specialArgs = { inherit inputs; };
};
};
};
}