diff --git a/flake.nix b/flake.nix index b1dc6ae..f2920a7 100755 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ ./modules/nixos/audio ./modules/nixos/networking ./modules/nixos/fonts + ./modules/nixos/greeter catppuccin.nixosModules.catppuccin lix-module.nixosModules.default @@ -81,6 +82,7 @@ ./modules/nixos/audio ./modules/nixos/networking ./modules/nixos/fonts + ./modules/nixos/greeter apple-silicon.nixosModules.apple-silicon-support catppuccin.nixosModules.catppuccin diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index 235304e..ddbea55 100755 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -71,16 +71,6 @@ 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 services.xserver = { xkb.layout = "us"; @@ -153,7 +143,6 @@ # gnupg # openssh # python3 - (pkgs.catppuccin-sddm.override { flavor = "mocha"; }) # steam-run # # deps for neovim compilation diff --git a/hosts/demeter/default.nix b/hosts/demeter/default.nix index 542cbce..f59c45d 100755 --- a/hosts/demeter/default.nix +++ b/hosts/demeter/default.nix @@ -70,14 +70,6 @@ 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 = { modesetting.enable = true; powerManagement.enable = true; @@ -166,7 +158,6 @@ gnupg openssh python3 - (pkgs.catppuccin-sddm.override { flavor = "mocha"; }) steam-run # deps for neovim compilation diff --git a/modules/nixos/greeter/default.nix b/modules/nixos/greeter/default.nix new file mode 100644 index 0000000..7001e05 --- /dev/null +++ b/modules/nixos/greeter/default.nix @@ -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; + }; +}