-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
112 lines (110 loc) · 2.96 KB
/
flake.nix
File metadata and controls
112 lines (110 loc) · 2.96 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
{
description = "NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nur.url = "github:nix-community/NUR";
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
agenix.url = "github:yaxitech/ragenix";
nix-gaming.url = "github:fufexan/nix-gaming";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:gerg-l/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
browser-previews = {
url = "github:nix-community/browser-previews";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
yazi-plugins = {
url = "github:yazi-rs/plugins";
flake = false;
};
sum-astro-nvim = {
url = "github:sum-rock/SumAstroNvim/master";
inputs.nixpkgs.follows = "nixpkgs";
};
zig.url = "github:mitchellh/zig-overlay";
nvf.url = "github:notashelf/nvf";
catppuccin.url = "github:catppuccin/nix";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord = {
url = "github:KaylorBen/nixcord";
};
nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";
};
outputs =
{
nixpkgs,
self,
agenix,
catppuccin,
home-manager,
chaotic,
lanzaboote,
nixcord,
nixpkgs-xr,
...
}@inputs:
let
username = "yamil";
system = "x86_64-linux";
in
{
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/desktop
agenix.nixosModules.default
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
chaotic.nixosModules.default
lanzaboote.nixosModules.lanzaboote
nixpkgs-xr.nixosModules.nixpkgs-xr
{
home-manager.users.yamil = {
imports = [
catppuccin.homeModules.catppuccin
nixcord.homeModules.nixcord
];
};
}
];
specialArgs = {
host = "desktop";
inherit self inputs username;
};
};
laptop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/laptop
lanzaboote.nixosModules.lanzaboote
];
specialArgs = {
host = "laptop";
inherit self inputs username;
};
};
vm = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/vm
lanzaboote.nixosModules.lanzaboote
];
specialArgs = {
host = "vm";
inherit self inputs username;
};
};
};
};
}