Refactor login.nix

This commit is contained in:
Kiana Sheibani 2024-07-05 01:46:31 -04:00
parent 2933c110b6
commit 4364155946

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, tokyo-night-sddm-src, ... }: { config, lib, pkgs, tokyo-night-sddm-src, ... }:
lib.mkIf (config.platform != "mobile") let
(let tokyo-night-sddm = pkgs.stdenv.mkDerivation {
tokyo-night-sddm = with pkgs.libsForQt5; pkgs.stdenv.mkDerivation {
name = "tokyo-night-sddm"; name = "tokyo-night-sddm";
src = tokyo-night-sddm-src; src = tokyo-night-sddm-src;
installPhase = '' installPhase = ''
@ -10,7 +9,7 @@ lib.mkIf (config.platform != "mobile")
mv * $out/share/sddm/themes/tokyo-night-sddm mv * $out/share/sddm/themes/tokyo-night-sddm
''; '';
}; };
in { in lib.mkIf (config.platform != "mobile") {
environment.systemPackages = with pkgs.libsForQt5; [ environment.systemPackages = with pkgs.libsForQt5; [
tokyo-night-sddm # Theme tokyo-night-sddm # Theme
qtbase qtbase
@ -25,4 +24,4 @@ lib.mkIf (config.platform != "mobile")
wayland.enable = true; wayland.enable = true;
theme = "tokyo-night-sddm"; theme = "tokyo-night-sddm";
}; };
}) }