-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
81 lines (64 loc) · 2.64 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
{
inputs = {
/* package repositorys */
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
/* Overlays and software tweaks */
nixpkgs-wayland = { url = "github:nix-community/nixpkgs-wayland"; inputs.nixpkgs.follows = "nixpkgs"; };
/* Software flakes */
nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; };
spicetify-nix = { url = "github:Gerg-L/spicetify-nix"; inputs.nixpkgs.follows = "nixpkgs"; };
nixcord = { url = "github:kaylorben/nixcord"; inputs.nixpkgs.follows = "nixpkgs"; };
zen-browser = { url = "github:MarceColl/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; # The Zen-browser flake has no module, only packages
# Neptune is right now bugged; waiting for my PR
neptune = { url = "github:uwu/neptune"; inputs.nixpkgs.follows = "nixpkgs"; };
/* Security flakes */
agenix = { url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; };
agenix-rekey = { url = "github:oddlama/agenix-rekey"; inputs.nixpkgs.follows = "nixpkgs"; };
/* Snowfall framework */
snwofall-lib = { url = "github:snowfallorg/lib"; inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs = { self, ...}@inputs: (inputs.snwofall-lib.mkFlake {
inherit inputs;
channels-config.allowUnfree = true;
src = ./.;
/* Snowfall internal settings */
snowfall = {
namespace = "sylveon"; # 🏳️⚧️
meta = {
name = "xaiya-flake";
title = "Xaiya's Flake";
};
};
/* System configuration */
# Add overlays to configuration
overlays = with inputs; [
# Improved wayland packages
nixpkgs-wayland.overlay
# Overwrite age modules with age-nix modules
agenix-rekey.overlays.default
# Software overlays
neptune.overlays.default
];
# Add modules to all NixOS systems
systems.modules.nixos = with inputs; [
# installing agenix modules
agenix.nixosModules.default
agenix-rekey.nixosModules.default
];
# add modules to all home-manager instances
homes.modules = with inputs; [
spicetify-nix.homeManagerModules.default
nixcord.homeManagerModules.nixcord
nixvim.homeManagerModules.nixvim
];
})
// {
# Configuring agenix-rekey itself
agenix-rekey = inputs.agenix-rekey.configure {
userFlake = inputs.self;
nixosConfigurations = inputs.self.nixosConfigurations;
};
};
}