-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
135 lines (120 loc) · 3.55 KB
/
Copy pathflake.nix
File metadata and controls
135 lines (120 loc) · 3.55 KB
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
{
description = "NixOS configuration";
nixConfig = {
extra-substituters = [
"https://niri.cachix.org"
"https://kopuz.cachix.org"
"https://attic.xuyh0120.win/lantian"
];
extra-trusted-public-keys = [
"niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964="
"kopuz.cachix.org-1:J2X3AnAYhKTJW5S3aCLoA1ckonQXVNZMQvhZA0YAufw="
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak?ref=main";
kopuz.url = "github:temidaradev/kopuz";
home-manager = {
url = "github:nix-community/home-manager?ref=release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
winapps = {
url = "github:winapps-org/winapps";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim-config = {
url = "git+https://codeberg.org/dimkauzh/nvim-config.git";
inputs.nixpkgs.follows = "nixpkgs";
};
fuckingnode = {
url = "github:ZakaHaceCosas/FuckingNode";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs, nixpkgs-unstable, chaotic, self,
home-manager,
nix-flatpak,
niri,
...
} @ inputs:
let
system_version = "26.05";
unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
};
in
{
nixosConfigurations.zephyrwork = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self unstable;
system_version = system_version;
};
modules = [
./hosts/zephyrwork/machine.nix
./modules/nixos
./modules/nixos/graphics/amd.nix
chaotic.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.dima.imports = [
./hosts/zephyrwork/home.nix
./modules/home
niri.homeModules.niri
nix-flatpak.homeManagerModules.nix-flatpak
];
home-manager.extraSpecialArgs = {
inherit inputs self unstable;
system_version = system_version;
};
}
];
};
nixosConfigurations.zephyr = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self unstable;
system_version = system_version;
};
modules = [
./hosts/zephyr/machine.nix
./modules/nixos
./modules/nixos/graphics/intel.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.dima.imports = [
./hosts/zephyr/home.nix
./modules/home
niri.homeModules.niri
nix-flatpak.homeManagerModules.nix-flatpak
];
home-manager.extraSpecialArgs = {
inherit inputs self unstable;
system_version = system_version;
};
}
];
};
};
}