From 226841161314580f5ad249c76ae49c4ad93a52b6 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Mon, 29 Jan 2024 15:41:12 +0100 Subject: [PATCH] "LAMBDA: New linux kernel (latest), mullvad, BT etc.." --- home/lambda/config-files/wezterm.lua | 1 + hosts/lambda/default.nix | 40 ++++++++++++++++++++++++---- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/home/lambda/config-files/wezterm.lua b/home/lambda/config-files/wezterm.lua index d3bc013..fb4ee0c 100644 --- a/home/lambda/config-files/wezterm.lua +++ b/home/lambda/config-files/wezterm.lua @@ -38,6 +38,7 @@ end config.text_background_opacity = .4 config.enable_scroll_bar = false config.enable_tab_bar = true +config.tab_bar_at_bottom = true config.enable_wayland = true config.front_end = "OpenGL" config.warn_about_missing_glyphs = false diff --git a/hosts/lambda/default.nix b/hosts/lambda/default.nix index 6008a55..e0fc9b1 100644 --- a/hosts/lambda/default.nix +++ b/hosts/lambda/default.nix @@ -45,10 +45,22 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; }; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + }; + }; + }; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.kernelPackages = pkgs.linuxPackages_latest; + networking.hostName = "lambda"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -72,13 +84,15 @@ # Enable the X11 windowing system. services.xserver.enable = true; services.xserver.displayManager.gdm.enable = true; - services.xserver.desktopManager.gnome.enable = true; + #services.xserver.displayManager.sddm.enable = true; + services.xserver.desktopManager.plasma5.enable = true; + services.xserver.displayManager.defaultSession = "plasmawayland"; services.xserver.videoDrivers = ["nvidia"]; - + services.blueman.enable = true; # Configure keymap in X11 - services.xserver.xkb.layout = "de"; + services.xserver.xkb.layout = "us"; # services.xserver.xkb.options = "eurosign:e,caps:escape"; # Enable CUPS to print documents. @@ -86,7 +100,10 @@ # Enable sound. sound.enable = true; - hardware.pulseaudio.enable = true; + hardware.pulseaudio = { + enable = true; + package = pkgs.pulseaudioFull; + }; # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; @@ -127,9 +144,22 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.mysql = { + enable = true; + package = pkgs.mariadb; + }; + + services.mullvad-vpn = { + enable = true; + package = pkgs.mullvad-vpn; + }; + + networking.wireguard.enable = true; + + services.tailscale.enable = true; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 8080 ]; + networking.firewall.allowedTCPPorts = [ 8080 5173 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;