feat: switch to tui-greet instead of sddm

This commit is contained in:
Youwen Wu 2024-08-09 02:09:01 -07:00
parent 0f6a0efcae
commit 367e650979
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
4 changed files with 25 additions and 20 deletions

View file

@ -52,6 +52,7 @@
./modules/nixos/audio ./modules/nixos/audio
./modules/nixos/networking ./modules/nixos/networking
./modules/nixos/fonts ./modules/nixos/fonts
./modules/nixos/greeter
catppuccin.nixosModules.catppuccin catppuccin.nixosModules.catppuccin
lix-module.nixosModules.default lix-module.nixosModules.default
@ -81,6 +82,7 @@
./modules/nixos/audio ./modules/nixos/audio
./modules/nixos/networking ./modules/nixos/networking
./modules/nixos/fonts ./modules/nixos/fonts
./modules/nixos/greeter
apple-silicon.nixosModules.apple-silicon-support apple-silicon.nixosModules.apple-silicon-support
catppuccin.nixosModules.catppuccin catppuccin.nixosModules.catppuccin

View file

@ -71,16 +71,6 @@
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ]; libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
}; };
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
};
# services.desktopManager.plasma6.enable = true;
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = {
xkb.layout = "us"; xkb.layout = "us";
@ -153,7 +143,6 @@
# gnupg # gnupg
# openssh # openssh
# python3 # python3
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
# steam-run # steam-run
# # deps for neovim compilation # # deps for neovim compilation

View file

@ -70,14 +70,6 @@
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ]; libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
}; };
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
};
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;
powerManagement.enable = true; powerManagement.enable = true;
@ -166,7 +158,6 @@
gnupg gnupg
openssh openssh
python3 python3
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
steam-run steam-run
# deps for neovim compilation # deps for neovim compilation

View file

@ -0,0 +1,23 @@
{pkgs, ...}:
{
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting 'Welcome to liminalOS. Access is restricted to authorized personnel only.'";
user = "greeter";
};
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal"; # Without this errors will spam on screen
# Without these bootlogs will spam on screen
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
}