-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
111 lines (105 loc) · 2.86 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
{
description = "NixOS configuration";
nixConfig = {
extra-substituters = [
"https://niri.cachix.org"
"https://cosmic.cachix.org/"
];
extra-trusted-public-keys = [
"niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964="
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
mesa-pinned.url = "github:nixos/nixpkgs?rev=6a0ba68039594c1382d503f68e71a5217b3eb1b9";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim-config = {
url = "github:dimkauzh/nvim-config";
inputs.nixpkgs.follows = "nixpkgs";
};
fuckingnode = {
url = "github:ZakaHaceCosas/FuckingNode";
inputs.nixpkgs.follows = "nixpkgs"
};
niri = {
url = "github:sodiboo/niri-flake?ref=main";
};
cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
};
nix-flatpak = {
url = "github:gmodena/nix-flatpak?ref=latest";
};
};
outputs = {
nixpkgs, self,
home-manager,
nix-flatpak,
mesa-pinned,
niri,
cosmic,
...
} @ inputs:
let
system = "x86_64-linux";
mesa-pkg = import mesa-pinned { inherit system; };
in
{
nixosConfigurations.zephyr = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
};
modules = [
./hosts/zephyr/machine.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.dima.imports = [
./hosts/zephyr/home.nix
nix-flatpak.homeManagerModules.nix-flatpak
];
home-manager.extraSpecialArgs = {
inherit inputs self;
};
}
];
};
nixosConfigurations.zephyrwork = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self mesa-pkg;
};
modules = [
./hosts/zephyrwork/machine.nix
cosmic.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.dima.imports = [
./hosts/zephyrwork/home.nix
nix-flatpak.homeManagerModules.nix-flatpak
niri.homeModules.niri
];
home-manager.extraSpecialArgs = {
inherit inputs self;
};
}
];
};
};
}