Refactor login.nix
This commit is contained in:
parent
2933c110b6
commit
4364155946
|
@ -1,28 +1,27 @@
|
||||||
{ 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 = ''
|
|
||||||
cp -f ${./tokyo-night-sddm/theme.conf} ./theme.conf
|
cp -f ${./tokyo-night-sddm/theme.conf} ./theme.conf
|
||||||
mkdir -p $out/share/sddm/themes/tokyo-night-sddm
|
mkdir -p $out/share/sddm/themes/tokyo-night-sddm
|
||||||
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
|
||||||
qtsvg
|
qtsvg
|
||||||
qtquickcontrols2
|
qtquickcontrols2
|
||||||
qtgraphicaleffects
|
qtgraphicaleffects
|
||||||
];
|
];
|
||||||
|
|
||||||
services.displayManager.defaultSession = "hyprland";
|
services.displayManager.defaultSession = "hyprland";
|
||||||
services.displayManager.sddm = {
|
services.displayManager.sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wayland.enable = true;
|
wayland.enable = true;
|
||||||
theme = "tokyo-night-sddm";
|
theme = "tokyo-night-sddm";
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
|
Loading…
Reference in a new issue