headless server
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user