blob: 2c39141544c8183735f13f7137ac264ac6383c77 (
plain)
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
|
{
config,
lib,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
../../mixins/tailscale.nix
../../mixins/cli.nix
./services/website.nix
./services/git.nix
./services/hydrus.nix
./services/matrix.nix
./services/maloja.nix
];
config = {
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
loader.grub.device = "/dev/vda";
initrd = {
availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
kernelModules = [];
};
kernelModules = [];
extraModulePackages = [];
};
networking.interfaces.ens3.useDHCP = lib.mkDefault true;
time.timeZone = lib.mkDefault "Frankfurt";
networking.networkmanager.enable = lib.mkForce false;
nixpkgs.config.allowUnfree = true;
environment.persistence."/nix/persist".directories = [
{
directory = config.services.terraria.dataDir;
user = "terraria";
group = "terraria";
}
];
services.terraria = {
enable = true;
worldPath = "${config.services.terraria.dataDir}/14.wld";
password = "???";
openFirewall = true;
};
};
}
|