-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
137 lines (113 loc) · 3.07 KB
/
flake.nix
File metadata and controls
137 lines (113 loc) · 3.07 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
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
{
description = "NixOS configuration";
inputs = {
awww = {
url = "git+https://codeberg.org/LGFae/awww";
inputs.nixpkgs.follows = "nixpkgs";
};
dustpan = {
url = "github:matthew-hre/dustpan";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
inputs.nixpkgs.follows = "nixpkgs";
};
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
helium = {
url = "github:FKouhai/helium2nix/main";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
ink = {
url = "github:theMackabu/ink";
inputs.nixpkgs.follows = "nixpkgs";
};
jj = {
url = "github:jj-vcs/jj";
inputs.nixpkgs.follows = "nixpkgs";
};
llm-agents = {
url = "github:numtide/llm-agents.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.niri-unstable.follows = "niri-custom";
};
niri-custom = {
url = "github:niri-wm/niri/wip/branch";
flake = false;
};
niri-screen-recorder = {
url = "github:matthew-hre/niri-screen-recorder";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
quickshell-config = {
url = "github:matthew-hre/quickshell-config";
};
solaar = {
url = "github:Svenum/Solaar-Flake/main";
inputs.nixpkgs.follows = "nixpkgs";
};
stash = {
url = "github:NotAShelf/stash/f6818c9e6f2e4da4f8e7966ba4a96a317e1ad530";
inputs.nixpkgs.follows = "nixpkgs";
};
vicinae = {
url = "github:vicinaehq/vicinae";
inputs.nixpkgs.follows = "nixpkgs";
};
# Don't follow nixpkgs — Zed's livekit build breaks with mismatched nixpkgs
zed = {
url = "github:zed-industries/zed";
};
};
outputs = inputs @ {
nixpkgs,
self,
...
}: let
system = "x86_64-linux";
lib = import ./lib {inherit inputs nixpkgs;};
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
toad = lib.mkHost "toad" [
./hosts/toad/configuration.nix
];
donkeykong = lib.mkHost "donkeykong" [
./hosts/donkeykong/configuration.nix
];
};
checks.${system} = {
pre-commit-check = inputs.git-hooks.lib.${system}.run {
src = ./.;
hooks = {
alejandra.enable = true;
};
};
};
devShells.${system}.default = pkgs.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook;
buildInputs = self.checks.${system}.pre-commit-check.enabledPackages;
};
formatter.${system} = pkgs.alejandra;
};
}