-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
102 lines (99 loc) · 3.67 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
{
description = "Pocket nixos flake";
inputs = {
# Main inputs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
zen-browser.url = "github:MarceColl/zen-browser-flake";
hyprland.url = "github:hyprwm/Hyprland";
nur.url = "github:nix-community/NUR";
bald.url = "github:NotBalds/bald";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
masterpkgs.url = "github:NixOS/nixpkgs/master";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay.url = "github:oxalica/rust-overlay";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
pabc-nix = {
url = "github:ProggerX/pabc-nix/v1";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix.url = "github:danth/stylix";
deploy-rs.url = "github:serokell/deploy-rs";
# Server inputs
flux.url = "github:Bananad3v/flux";
emanote = {
url = "github:srid/emanote";
inputs.nixpkgs.follows = "nixpkgs";
};
notie = {
url = "github:ProggerX/notie";
inputs.nixpkgs.follows = "nixpkgs";
};
notbalds.url = "github:NotBalds/nix";
lazynix.url = "github:ProggerX/lazynix";
};
outputs = { nixpkgs, ...}@inputs: {
nixosConfigurations = {
snd-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./modules/base.nix
./modules/home.nix
./modules/aagl.nix
./modules/nvidia.nix
./hosts/pc/configuration.nix
./hosts/pc/hardware-configuration.nix
./modules/non-server.nix
];
};
snd-lp = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./modules/base.nix
./modules/home.nix
./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix
./modules/non-server.nix
];
};
snd-tp = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./modules/base.nix
./modules/home.nix
./hosts/thinkpad/configuration.nix
./hosts/thinkpad/hardware-configuration.nix
./modules/non-server.nix
];
};
server = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = { inherit inputs; };
modules = [
inputs.notie.nixosModules.notie
inputs.notbalds.nixosModules.cwe-server
./modules/base.nix
./modules/server
./hosts/server/configuration.nix
./hosts/server/server.nix
];
};
};
deploy.nodes.server = {
hostname = "100.126.179.69";
profiles.system = {
user = "root";
sshUser = "root";
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos inputs.self.nixosConfigurations.server;
};
};
};
}