From c5325866ec40b7fbbb0507d2e63f96276ac413a2 Mon Sep 17 00:00:00 2001 From: xenia Date: Sun, 23 Jun 2024 22:43:51 +0200 Subject: [PATCH] Move nixos graphical to gnome (wayland), change some alacritty settings to match --- home/alacritty/alacritty.nix | 6 +++--- nixos/graphical.nix | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/home/alacritty/alacritty.nix b/home/alacritty/alacritty.nix index dd83d00e..7925c024 100644 --- a/home/alacritty/alacritty.nix +++ b/home/alacritty/alacritty.nix @@ -40,7 +40,7 @@ case $CHOICE in ;; esac"; - font-size = if pkgs.stdenv.isLinux then 8 else 15; + font-size = 15; base-cfg = { window = { @@ -48,11 +48,11 @@ esac"; padding.y = 0; decorations = if stdenv.isDarwin then "Buttonless" else "Full"; startup_mode = "Windowed"; - opacity = 0.6; + opacity = if stdenv.isDarwin then 0.6 else 0.9; blur = true; option_as_alt = "OnlyRight"; }; - mouse.hide_when_typing = true; + mouse.hide_when_typing = stdenv.isDarwin; font = { normal.family = "SAX2"; size = font-size; diff --git a/nixos/graphical.nix b/nixos/graphical.nix index cfbfd7fb..685622ce 100644 --- a/nixos/graphical.nix +++ b/nixos/graphical.nix @@ -9,11 +9,19 @@ services.xserver = { enable = true; - desktopManager.xfce.enable = true; - displayManager.lightdm = { - background = ../backgrounds/${background-image}; - greeters.slick.enable = true; + # desktopManager.xfce.enable = true; + # displayManager.lightdm = { + # background = ../backgrounds/${background-image}; + # greeters.slick.enable = true; + # }; + displayManager.gdm = { + enable = true; + autoSuspend = false; }; + desktopManager.gnome.enable = true; + + # displayManager.sddm.enable = true; + # desktopManager.plasma6.enable = true; xkb = { layout = "fox"; @@ -26,8 +34,6 @@ }; }; - services.displayManager.defaultSession = "xfce"; - console.useXkbConfig = true; # Enable sound.