-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
117 lines (102 loc) · 2.72 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
112
113
114
115
116
117
{
description = "A simple NixOS flake";
inputs = {
# NixOS official package source, using the nixos-24.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# The ricing part is new
nix-colors.url = "github:misterio77/nix-colors";
# Home-Manager configuration here
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# for nix formatting
alejandra = {
url = "github:kamadorueda/alejandra";
inputs.nixpkgs.follows = "nixpkgs";
};
# Catppuccin btop theme
btop-catppuccin = {
url = "github:catppuccin/btop";
flake = false;
};
# Enabling hyprland thru this
hyprland = {
url = "github:hyprwm/Hyprland";
};
# Some basic plugins
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
# NixVim
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
# Latest yazi package
yazi.url = "github:sxyazi/yazi";
# Yazi plugins
yazi-plugins = {
url = "github:yazi-rs/plugins";
flake = false;
};
# Yazi flavors
yazi-flavors = {
url = "github:yazi-rs/flavors";
flake = false;
};
# A good Display manager is always important
sddm-sugar-candy-nix = {
url = "gitlab:Zhaith-Izaliel/sddm-sugar-candy-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# This is gonna be the coolest
ags.url = "github:aylur/ags";
};
outputs = {
self,
nixpkgs,
home-manager,
alejandra,
sddm-sugar-candy-nix,
...
} @ inputs: let
hostname = "nixprime";
in {
nixosConfigurations."${hostname}" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
# Importing the configuration.nix
./host
# The good formatter
# Will shift to nixfmt with treefmt once
# I learn to use it.
{
environment.systemPackages = [alejandra.defaultPackage.${system}];
}
# Add sugar-candy and its overlays
sddm-sugar-candy-nix.nixosModules.default
{
nixpkgs = {
overlays = [
sddm-sugar-candy-nix.overlays.default
];
};
}
# Using home-manager module as a NixOS module is better
# For pure NixOS distro
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.chris = import ./home;
extraSpecialArgs = {inherit inputs;};
};
}
];
};
};
}