-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
60 lines (54 loc) · 1.36 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
{
config,
inputs,
outputs,
pkgs,
lib,
secrets,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
./hardware.nix
../common/server.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Use grub boot loader
boot.loader.grub.enable = true;
networking = {
hostName = "bill"; # Define your hostname.
domain = secrets.hosts.bill.domain;
nameservers = secrets.hosts.bill.nameservers;
};
virtualisation.docker.enable = true;
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.bill = {
enable = true;
name = "bill";
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";
}