From aecb93b24fa4b0a57f74152421912ad47465470a Mon Sep 17 00:00:00 2001 From: fmarkwitz Date: Mon, 3 Jul 2023 13:43:32 +0200 Subject: [PATCH] xServer + audio settings for mibook --- machines/mibook/configuration.nix | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/machines/mibook/configuration.nix b/machines/mibook/configuration.nix index 7385124..89c8b2d 100644 --- a/machines/mibook/configuration.nix +++ b/machines/mibook/configuration.nix @@ -15,6 +15,42 @@ useOSProber = true; }; + # Enable the X11 windowing system. + services.xserver.enable = true; + + # Enable the GNOME Desktop Environment. + services.xserver.displayManager.gdm.enable = true; + services.xserver.desktopManager.gnome.enable = true; + + # Configure keymap in X11 + services.xserver = { + layout = "de"; + xkbVariant = ""; + }; + + # Configure console keymap + console.keyMap = "de"; + + # Enable CUPS to print documents. + services.printing.enable = true; + + # Enable sound with pipewire. + sound.enable = true; + hardware.pulseaudio.enable = false; + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment this + #jack.enable = true; + + # use the example session manager (no others are packaged yet so this is enabled by default, + # no need to redefine it in your config for now) + #media-session.enable = true; + }; + system = { stateVersion = "23.05";