feat: adding the server configuration
This commit is contained in:
parent
7b7a1e5ae5
commit
90ea287d60
4 changed files with 170 additions and 13 deletions
68
hosts/server/configuration.nix
Normal file
68
hosts/server/configuration.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../global.nix
|
||||
./hardware-configuration.nix
|
||||
../../modules/games/global.nix
|
||||
../../services/discord.nix
|
||||
../../services/games.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "nixos-fix";
|
||||
firewall.enable = false;
|
||||
networkmanager.enable = true;
|
||||
wireless.enable = false;
|
||||
};
|
||||
|
||||
service = {
|
||||
minecraft = {
|
||||
enium-pv = true;
|
||||
};
|
||||
bot_discord = {
|
||||
master = true;
|
||||
music = true;
|
||||
tempvoc = true;
|
||||
ticket = true;
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# Bootloader.
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
seatd.enable = true;
|
||||
openssh = {
|
||||
enable = true;
|
||||
ports = [ 42131 ];
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
udev.extraRules = ''
|
||||
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="5740", MODE="0666"
|
||||
'';
|
||||
redis.servers."" = {
|
||||
enable = true;
|
||||
};
|
||||
postgresql = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue