Revert "workstation | enable greetd to start things up"

This reverts commit 311b925cff.

It is more hassle than it is worth.
This commit is contained in:
Don Harper 2022-12-28 20:49:38 -06:00
parent 311b925cff
commit ed2e5a1b42

View file

@ -1,15 +1,5 @@
{ config, lib, pkgs, ... }: { config, pkgs, ... }:
let
swayConfig = pkgs.writeText "greetd-sway-config" ''
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c sway; swaymsg exit"
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \
-b 'Poweroff' 'systemctl poweroff' \
-b 'Reboot' 'systemctl reboot'
'';
in
{ {
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -32,24 +22,8 @@ in
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.utf8"; i18n.defaultLocale = "en_US.utf8";
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
};
};
};
environment.etc."greetd/environments".text = ''
sway
fish
bash
startxfce4
'';
# Splash screen # Splash screen
boot.plymouth.enable = true; boot.plymouth.enable = false;
boot.plymouth.theme = "breeze"; boot.plymouth.theme = "breeze";
security.polkit.enable = true; security.polkit.enable = true;
@ -65,6 +39,10 @@ in
# Enable the X11 windowing system. # Enable the X11 windowing system.
#services.xserver.enable = false; #services.xserver.enable = false;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = true;
#services.xserver.desktopManager.gnome.enable = false;
# Configure keymap in X11 # Configure keymap in X11
#services.xserver = { #services.xserver = {