disable factorio server for now and make sure that the bluetooth headset stays on the right profile

This commit is contained in:
Christoph Hollizeck 2024-04-21 14:22:54 +02:00
parent 2d6fecf8f6
commit e19de9f507
No known key found for this signature in database
4 changed files with 23 additions and 8 deletions

View file

@ -16,14 +16,17 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ factorio-headless-experimental ]; environment.systemPackages = with pkgs; [ factorio-headless ];
services.factorio = { services.factorio = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
public = true; public = true;
lan = true; lan = true;
bind = "[::]"; admins = [
"DaHolli"
"Galbrain"
];
nonBlockingSaving = true; nonBlockingSaving = true;
autosave-interval = 5; autosave-interval = 5;
loadLatestSave = true; loadLatestSave = true;
@ -31,6 +34,8 @@ in
token = "4d4624ca9a23396e1955c1b4b364ff"; token = "4d4624ca9a23396e1955c1b4b364ff";
game-name = "Alles Nix!"; game-name = "Alles Nix!";
game-password = "1234"; game-password = "1234";
saveName = "Vanilla";
bind = "192.168.178.34";
}; };
}; };
} }

View file

@ -16,15 +16,18 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ ]; environment.systemPackages = with pkgs; [ xdg-utils ];
services = { services = {
xserver = { xserver = {
enable = true; enable = true;
}; };
displayManager.sddm = { displayManager = {
enable = true; defaultSession = "plasmax11";
wayland.enable = true; sddm = {
enable = true;
wayland.enable = true;
};
}; };
desktopManager.plasma6 = enabled; desktopManager.plasma6 = enabled;
}; };

View file

@ -24,7 +24,7 @@ in
programs.noisetorch.enable = true; programs.noisetorch.enable = true;
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio = disabled;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
@ -32,6 +32,13 @@ in
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
extraConfig = {
"11-bluetooth-policy" = {
"bluetooth_policy.policy" = {
"media-role.use-headset-profile" = false;
};
};
};
}; };
}; };
} }

View file

@ -23,7 +23,7 @@ with lib.wyrdgard;
discord = enabled; discord = enabled;
_1password = enabled; _1password = enabled;
onedrive = enabled; onedrive = enabled;
factorio-server = enabled; factorio-server = disabled;
}; };
system = { system = {