-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
159 lines (133 loc) · 4.19 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
description = "Hmanhng's NixOS flake";
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"];
imports = [
./hosts
./lib
./modules
./pkgs
./pre-commit-hooks.nix
];
perSystem = {
config,
pkgs,
...
}: {
devShells = {
#run by `nix devlop` or `nix-shell`(legacy)
default = import ./shell.nix {inherit pkgs;};
#run by `nix develop .#<name>`
secret = with pkgs;
mkShell {
name = "secret";
nativeBuildInputs = [sops age gnupg ssh-to-age ssh-to-pgp];
shellHook = ''
export PS1="\e[0;31m(Secret)\$ \e[m"
'';
};
};
formatter = pkgs.alejandra;
};
};
inputs = {
# global, so they can be `.follow`ed
systems.url = "github:nix-systems/default-linux";
flake-compat.url = "github:edolstra/flake-compat";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence"; # Systems with ephemeral root storage.
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
};
};
nix-index-db = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
# hyprwm
hyprland.url = "github:hyprwm/hyprland";
hypridle = {
url = "github:hyprwm/hypridle";
inputs.hyprlang.follows = "hyprland/hyprlang";
inputs.hyprutils.follows = "hyprland/hyprutils";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
inputs.systems.follows = "hyprland/systems";
};
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs.hyprlang.follows = "hyprland/hyprlang";
inputs.hyprutils.follows = "hyprland/hyprutils";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
inputs.systems.follows = "hyprland/systems";
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
inputs.hyprlang.follows = "hyprland/hyprlang";
inputs.hyprutils.follows = "hyprland/hyprutils";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
inputs.systems.follows = "hyprland/systems";
};
catppuccin-starship = {
url = "github:catppuccin/starship";
flake = false;
};
matugen = {
url = "github:InioX/matugen";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "hyprland/systems";
};
nixpkgs-howdy.url = "github:fufexan/nixpkgs/howdy";
zen-browser = {
url = "github:fufexan/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://hyprland.cachix.org"
"https://hmanhng.cachix.org"
"https://fufexan.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"hmanhng.cachix.org-1:+pXFpN2CtS0rNUdCdeiOu6QUWMVBX0nCbWREhfiiKtI="
"fufexan.cachix.org-1:LwCDjCJNJQf5XD2BV+yamQIMZfcKWR9ISIFy5curUsY="
];
};
}