PortValhalla/profiles/machines/manuel/server.nix

81 lines
1.8 KiB
Nix
Raw Normal View History

2024-11-22 16:31:18 +00:00
{ lib, config, ... }:
2024-12-07 17:36:19 +00:00
let fs = import ../../../lib/modules/fileSystems/fs.nix;
2024-11-22 16:31:18 +00:00
in {
2024-12-06 12:40:04 +00:00
imports = [ ../../users/manuel/config.nix ];
2024-11-22 16:31:18 +00:00
config = {
valhalla = {
2024-12-07 19:03:58 +00:00
fileSystems.diskSetup.devices = {
2024-12-07 15:11:19 +00:00
OS = {
2024-11-22 16:31:18 +00:00
partitions = {
Boot = {
index = 1;
type = "uefi";
size = "+1G";
format = fs.fat32;
mountPoint = config.valhalla.boot.efiMountPoint;
};
Swap = {
index = 2;
type = "swap";
};
OS = {
index = 3;
label = lib.mkDefault config.valhalla.boot.label;
type = "linux";
format = fs.ext4;
mountPoint = "/";
};
};
};
};
hostname = "nuth.ch";
timeZone = "Europe/Zurich";
keyMap = "de_CH-latin1";
keyboardLayout = "ch";
i18n = {
2024-11-29 00:13:58 +00:00
localeSettings =
let defaultLocale = "en_US.UTF-8";
in {
LANG = "de_CH.UTF-8";
LANGUAGE = defaultLocale;
LC_MESSAGE = defaultLocale;
};
2024-11-22 16:31:18 +00:00
};
software = {
essential = true;
server = true;
};
programs.docker.enable = true;
linux.programs = {
2024-12-05 16:08:41 +00:00
grub.enable = true;
2024-11-22 16:31:18 +00:00
docker = {
services = {
2024-12-04 17:31:35 +00:00
anki-sync.enable = true;
2024-11-22 16:31:18 +00:00
drone.enable = true;
forgejo.enable = true;
jellyfin.enable = true;
minecraft.enable = true;
nextcloud.enable = true;
2024-12-04 16:02:54 +00:00
ryot.enable = true;
2024-11-22 16:31:18 +00:00
teamspeak.enable = true;
terraria.enable = true;
2024-11-22 16:31:18 +00:00
trackmania.enable = true;
vaultwarden.enable = true;
2024-12-04 16:02:54 +00:00
wekan.enable = true;
2024-11-22 16:31:18 +00:00
woodpecker.enable = true;
};
};
};
};
};
}