-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
62 lines (56 loc) · 1.48 KB
/
default.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
config,
inputs,
outputs,
pkgs,
lib,
secrets,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
./hardware.nix
../common/server.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking = {
hostName = "goku"; # Define your hostname.
domain = secrets.hosts.goku.domain;
nameservers = secrets.hosts.goku.nameservers;
dhcpcd.extraConfig = "nohook resolv.conf";
};
virtualisation.docker.enable = true;
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.goku = {
enable = true;
name = "goku";
settings = {
runner.fetch_interval = "15s";
container.docker_host = "automount";
};
labels = [
"alpine:docker://alpine:3.20.2"
"alpine-latest:docker://alpine:latest"
"alpine-tokyo:docker://${secrets.forgejo.domain}/wrmilling/alpine-tokyo:3.21.2-1"
"alpine-tokyo-latest:docker://${secrets.forgejo.domain}/wrmilling/alpine-tokyo:latest"
"ubuntu-latest:docker://node:18-bullseye"
];
url = "https://${secrets.forgejo.domain}";
token = secrets.forgejo.runnerToken;
};
};
home-manager = {
extraSpecialArgs = {
inherit inputs outputs;
};
users = {
w4cbe = import ../../home-manager/server;
};
};
system.stateVersion = "24.11";
}