-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
130 lines (127 loc) · 4.1 KB
/
flake.nix
File metadata and controls
130 lines (127 loc) · 4.1 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
{
description = "System configuration for raspi-doboz server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-raspberrypi = {
url = "github:nvmd/nixos-raspberrypi/main";
# a long running build is cached with their nixpkgs, let's keep it for now
#inputs.nixpkgs.follows = "nixpkgs";
inputs.argononed.follows = "";
inputs.nixos-images.follows = "";
inputs.flake-compat.follows = "";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "";
};
moe = {
url = "github:tchfoo/moe";
inputs.nixpkgs.follows = "nixpkgs";
};
ymstnt-website = {
url = "git+https://git.tchfoo.com/ymstnt/website";
flake = false;
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
nixpkgs-patcher.url = "github:gepbird/nixpkgs-patcher";
#nixpkgs-patch-rauthy-init = {
# url = "https://github.com/NixOS/nixpkgs/pull/371091.diff";
# flake = false;
#};
nixpkgs-patch-nixos-nginx-add-build-time-syntax-validation = {
url = "https://github.com/NixOS/nixpkgs/pull/474858.diff";
flake = false;
};
gep-dotfiles = {
url = "git+https://git.tchfoo.com/gepbird/dotfiles";
inputs.nixpkgs.follows = "nixpkgs";
inputs.sops-nix.follows = "";
inputs.home-manager.follows = "";
inputs.systems.follows = "systems";
inputs.flake-parts.follows = "flake-parts";
inputs.dwm-gep.follows = "";
inputs.nur.follows = "";
inputs.treefmt-nix.follows = "";
inputs.nixpkgs-patcher.follows = "";
inputs.nixpkgs-patch-hytale-launcher.follows = "";
};
ymstnt-dotfiles = {
url = "git+https://git.tchfoo.com/ymstnt/dotfiles";
inputs.nixpkgs.follows = "nixpkgs";
inputs.agenix.follows = "";
inputs.home-manager.follows = "";
inputs.nixpkgs-master.follows = "";
inputs.nixpkgs-develop.follows = "";
inputs.nixpkgs-stable.follows = "";
inputs.nur.follows = "";
inputs.cosmic-manager.follows = "";
inputs.nixpkgs-patcher.follows = "";
inputs.nixpkgs-patch-hytale-launcher.follows = "";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "";
};
# dependencies of the above modules
systems.url = "github:nix-systems/default";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nixpkgs-patch-fix-raspi-module-renames = {
url = "https://github.com/NixOS/nixpkgs/pull/398456.diff";
flake = false;
};
};
outputs =
inputs: with inputs; {
nixosConfigurations.raspi-doboz = nixpkgs-patcher.lib.nixosSystem {
modules = [
./hosts/raspi-doboz/configuration.nix
];
specialArgs = inputs;
nixpkgsPatcher.enableTroubleshootingShell = false;
};
nixosConfigurations.raspi5-doboz = nixpkgs-patcher.lib.nixosSystem {
modules = [
./hosts/raspi5-doboz/configuration.nix
];
specialArgs = inputs;
nixpkgsPatcher.enableTroubleshootingShell = false;
};
ci = {
inherit (self.nixosConfigurations.raspi-doboz.pkgs)
bottom
comma
lix
nh
nil
nvim-gep
pocket-id
;
};
formatter.aarch64-linux =
(treefmt-nix.lib.evalModule self.nixosConfigurations.raspi5-doboz.pkgs {
programs.nixfmt.enable = true;
}).config.build.wrapper;
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://nixos-raspberrypi.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI="
];
};
}