Refactor login.nix
This commit is contained in:
parent
2933c110b6
commit
4364155946
|
@ -1,7 +1,6 @@
|
|||
{ config, lib, pkgs, tokyo-night-sddm-src, ... }:
|
||||
lib.mkIf (config.platform != "mobile")
|
||||
(let
|
||||
tokyo-night-sddm = with pkgs.libsForQt5; pkgs.stdenv.mkDerivation {
|
||||
let
|
||||
tokyo-night-sddm = pkgs.stdenv.mkDerivation {
|
||||
name = "tokyo-night-sddm";
|
||||
src = tokyo-night-sddm-src;
|
||||
installPhase = ''
|
||||
|
@ -10,7 +9,7 @@ lib.mkIf (config.platform != "mobile")
|
|||
mv * $out/share/sddm/themes/tokyo-night-sddm
|
||||
'';
|
||||
};
|
||||
in {
|
||||
in lib.mkIf (config.platform != "mobile") {
|
||||
environment.systemPackages = with pkgs.libsForQt5; [
|
||||
tokyo-night-sddm # Theme
|
||||
qtbase
|
||||
|
@ -25,4 +24,4 @@ lib.mkIf (config.platform != "mobile")
|
|||
wayland.enable = true;
|
||||
theme = "tokyo-night-sddm";
|
||||
};
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue