-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (36 loc) · 1.06 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
doorbots-config = {
url = "git+ssh://[email protected]/DoESLiverpool/doorbots-config.git";
flake = false;
};
};
outputs = { ... }@inputs: rec {
images = {
pi = (inputs.self.nixosConfigurations.pi.extendModules {
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
{
disabledModules = [ "profiles/base.nix" ];
}
];
}).config.system.build.sdImage;
};
packages.x86_64-linux.pi-image = images.pi;
packages.aarch64-linux.pi-image = images.pi;
nixosConfigurations = {
pi = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "aarch64-linux";
modules = [
inputs.nixos-hardware.nixosModules.raspberry-pi-3
"${inputs.nixpkgs}/nixos/modules/profiles/minimal.nix"
./configuration.nix
./base.nix
];
};
};
};
}