-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
65 lines (51 loc) · 1.84 KB
/
flake.nix
File metadata and controls
65 lines (51 loc) · 1.84 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
# Repository's entry point
# Keep this file as clear as possible, let it serve as repository's index
{
outputs = {
self,
nixpkgs,
...
} @ inputs: {
supportedSystems = [
"x86_64-linux"
];
lib = import ./lib/default.nix {inherit inputs;};
presets = self.lib.generatePresets;
nixosConfigurations = self.lib.generateNixosConfigurations {
# test = {
# defaultNixpkgs = nixpkgs;
# stateVersion = "23.05";
# };
caminus = {
defaultNixpkgs = nixpkgs;
stateVersion = "23.05";
};
mcg-valts = {
defaultNixpkgs = nixpkgs;
stateVersion = "23.05";
};
ciphus = {
defaultNixpkgs = nixpkgs;
stateVersion = "23.11";
};
};
formatter = self.lib.generateFormatter nixpkgs "alejandra";
# TODO define devShells.<system>.default with tools such as agenix
};
# Remember to add flake inputs to nix.registry to ensure offline rebuilds
# TODO Maybe possible to write nix check that detects unpinned input which would prevent offline rebuild?
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
nixpkgs-bleeding.url = "github:nixos/nixpkgs/master";
# Core dependencies
# Must be manually updated to prevent breakage
nixpkgs-core.url = "github:nixos/nixpkgs/f81bb6b77e190eb6f93053fb3e917501dbaf6291";
haumea.url = "github:nix-community/haumea/ec6350fd9353e7f27ce0e85d31f82e3ed73e4d70";
haumea.inputs.nixpkgs.follows = "nixpkgs-core";
home-manager.url = "github:nix-community/home-manager/501cfec8277f931a9c9af9f23d3105c537faeafe";
home-manager.inputs.nixpkgs.follows = "nixpkgs-core";
agenix.url = "github:ryantm/agenix/531beac616433bac6f9e2a19feb8e99a22a66baf";
agenix.inputs.home-manager.follows = "home-manager";
agenix.inputs.nixpkgs.follows = "nixpkgs-core";
};
}