-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfiguration.nix
46 lines (44 loc) · 1.18 KB
/
configuration.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
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
{
inputs,
lib,
config,
pkgs,
...
}: {
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets.hydra-admin-password.owner = "hydra";
sops.secrets.id_buildfarm = {};
sops.secrets.id_buildfarm.owner = "hydra-queue-runner";
sops.secrets.cache-sig-key.owner = "root";
imports = [
inputs.nix-serve-ng.nixosModules.default
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
../generic-disk-config.nix
../common.nix
../../services/hydra/hydra.nix
../../services/openssh/openssh.nix
../../services/binarycache/binary-cache.nix
../../users/hrosten.nix
];
networking.hostName = "ghafhydra";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.grub = {
devices = ["/dev/sda"];
efiSupport = true;
efiInstallAsRemovable = true;
};
# TODO: demo with static IP
networking.useDHCP = false;
networking.nameservers = ["192.168.1.1"];
networking.defaultGateway = "192.168.1.1";
networking.interfaces.eth0.ipv4.addresses = [
{
address = "192.168.1.112";
prefixLength = 24;
}
];
}