-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
134 lines (109 loc) · 3.02 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
description = "Hansen's Nix Setup";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11";
hyprland = {
url = "github:hyprwm/Hyprland?rev=d26439a0fe5594fb26d5a3c01571f9490a9a2d2c&submodules=1";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
stylix.url = "github:danth/stylix";
wezterm = {
url = "github:wez/wezterm?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
# inputs.nixpkgs.follows = "hyprland";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser.url = "github:whoslucifer/zen-browser-flake";
distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
ngrok.url = "github:ngrok/ngrok-nix";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
ags = {
url = "github:whoslucifer/ags?rev=05e0f23534fa30c1db2a142664ee8f71e38db260";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
more-waita = {
url = "github:somepaulo/MoreWaita";
flake = false;
};
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
nix-index-database,
stylix,
ngrok,
home-manager,
...
} @ inputs: let
system = "x86_64-linux";
host = "nix";
username = "asherah";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
pkgs-stable = import nixpkgs-stable {
inherit system;
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
};
};
in {
nixosConfigurations = {
"${host}" = nixpkgs.lib.nixosSystem rec {
specialArgs = {
inherit system;
inherit inputs;
inherit username;
inherit host;
};
modules = [
./hosts/nix/config.nix
{
nixpkgs.config = {
allowUnfree = true;
# allowBroken = true;
};
}
inputs.distro-grub-themes.nixosModules.${system}.default
nix-index-database.nixosModules.nix-index
# optional to also wrap and install comma
# { programs.nix-index-database.comma.enable = true; }
ngrok.nixosModules.ngrok
# Make pkgs-stable available as a special argument for modules
{
_module.args.pkgs-stable = pkgs-stable;
}
];
};
};
homeConfigurations = {
"${username}" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs-stable;
extraSpecialArgs = {
inherit inputs;
};
modules = [
./home.nix
stylix.homeManagerModules.stylix
];
};
};
};
}