fix: sddm theme
This commit is contained in:
parent
fc9b14e0d2
commit
d273765b99
9 changed files with 65 additions and 106 deletions
|
|
@ -4,10 +4,12 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
helper,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (helper) capitalize;
|
||||
username = "danny";
|
||||
in
|
||||
{
|
||||
|
|
@ -20,16 +22,27 @@ in
|
|||
monitors = [
|
||||
{
|
||||
desc = "ASUSTek COMPUTER INC ASUS VG32VQ1B 0x00002271";
|
||||
output = "DP-6";
|
||||
output = "DP-5";
|
||||
props = "2560x1440@165, 0x0, 1";
|
||||
}
|
||||
{
|
||||
desc = "Acer Technologies XV272U V3 1322131231233";
|
||||
output = "DP-5";
|
||||
output = "DP-6";
|
||||
props = "2560x1440@180, -1440x-600, 1, transform, 1";
|
||||
}
|
||||
];
|
||||
};
|
||||
sddm.package = (
|
||||
pkgs.sddm-astronaut.override {
|
||||
embeddedTheme = "purple_leaves";
|
||||
themeConfig = {
|
||||
ScreenWidth = "2560";
|
||||
ScreenHeight = "1440";
|
||||
Font = "SF Pro Display Bold";
|
||||
HeaderText = "Welcome, ${capitalize username}";
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
let
|
||||
inherit (lib) optionalString;
|
||||
inherit (config.systemConf) username;
|
||||
inherit (config.systemConf.hyprland) monitors;
|
||||
in
|
||||
{
|
||||
home-manager.users."${username}" = {
|
||||
|
|
@ -20,7 +21,7 @@ in
|
|||
settings = [
|
||||
# monitor 1
|
||||
{
|
||||
output = "DP-6";
|
||||
output = "${(builtins.elemAt monitors 0).output}";
|
||||
height = 48;
|
||||
modules-left = [
|
||||
"custom/os"
|
||||
|
|
@ -47,7 +48,7 @@ in
|
|||
}
|
||||
# monitor 2
|
||||
{
|
||||
output = "DP-5";
|
||||
output = "${(builtins.elemAt monitors 1).output}";
|
||||
height = 54;
|
||||
modules-left = [
|
||||
"clock"
|
||||
|
|
|
|||
|
|
@ -1,31 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
themeConfig = {
|
||||
bgVidDay = "playlist/day.m3u";
|
||||
bgVidNight = "playlist/night.m3u";
|
||||
};
|
||||
inherit (config.systemConf.sddm) theme package;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
displayManager = {
|
||||
sddm.wayland.enable = true;
|
||||
sddm.enable = true;
|
||||
sddm.theme = "${pkgs.callPackage ./../../pkgs/sddm-themes/gruvbox.nix {
|
||||
inherit pkgs themeConfig;
|
||||
}}";
|
||||
};
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
theme = theme;
|
||||
settings.Theme.Current = theme;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# SDDM
|
||||
libsForQt5.qt5.qtmultimedia
|
||||
libsForQt5.qt5.qtquickcontrols2
|
||||
libsForQt5.qt5.qtgraphicaleffects
|
||||
libsForQt5.qt5.qtsvg
|
||||
libsForQt5.qt5.qtwayland
|
||||
pkgs.gst_all_1.gst-libav
|
||||
pkgs.gst_all_1.gstreamer
|
||||
pkgs.gst_all_1.gst-plugins-good
|
||||
environment.systemPackages = with pkgs.kdePackages; [
|
||||
package
|
||||
qtmultimedia
|
||||
qtbase
|
||||
qtwayland
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue