nixos-config/config/login.nix

28 lines
746 B
Nix
Raw Normal View History

{ config, lib, pkgs, tokyo-night-sddm-src, ... }:
2024-07-05 01:46:31 -04:00
let
tokyo-night-sddm = pkgs.stdenv.mkDerivation {
name = "tokyo-night-sddm";
src = tokyo-night-sddm-src;
installPhase = ''
cp -f ${./tokyo-night-sddm/theme.conf} ./theme.conf
mkdir -p $out/share/sddm/themes/tokyo-night-sddm
mv * $out/share/sddm/themes/tokyo-night-sddm
'';
2024-07-05 01:46:31 -04:00
};
in lib.mkIf (config.platform != "mobile") {
environment.systemPackages = with pkgs.libsForQt5; [
tokyo-night-sddm # Theme
qtbase
qtsvg
qtquickcontrols2
qtgraphicaleffects
];
2024-07-05 01:46:31 -04:00
services.displayManager.defaultSession = "hyprland";
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "tokyo-night-sddm";
};
}