headless server

This commit is contained in:
2024-02-26 13:18:20 -06:00
parent 6f4cec6cd3
commit d6d2d161cb

View File

@@ -201,41 +201,6 @@ nix = let featuresList = [
}; };
#+end_src #+end_src
* DISPLAY MANAGER
Rather than having the server be completely headless, temporarily I'm enabling
xfce as a minimal display manager.
#+begin_src nix
services = {
xserver = {
enable = true;
displayManager.defaultSession = "xfce";
videoDrivers = [ "nvidia" ];
desktopManager = {
xfce.enable = true;
xterm.enable = false;
};
layout = "us";
};
};
#+end_src
* SOUND
In order to avoid issues with PipeWire, the wiki recommends to disable
pulseaudio. This is a basic PipeWire configuration that can support alsa/pulse
backends.
#+begin_src nix
hardware.pulseaudio.enable = false;
sound.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
#+end_src
* SECURITY * SECURITY
Disabled password in sudo for commodity, but this is obviously not recommended, Disabled password in sudo for commodity, but this is obviously not recommended,
regarding rkit, that setting enables pipewire to run with real-time regarding rkit, that setting enables pipewire to run with real-time
@@ -871,8 +836,8 @@ services = {
writable = "yes"; writable = "yes";
"read only" = "no"; "read only" = "no";
"guest ok" = "yes"; "guest ok" = "yes";
"write list" = "jawz"; "write list" = "capta";
"force user" = "jawz"; "force user" = "capta";
"force group" = "WORKGROUP"; "force group" = "WORKGROUP";
}; };
in { in {