add sddm theme

This commit is contained in:
Kopatz
2024-06-06 23:00:32 +02:00
parent 9d6709629e
commit c3d36a822d
5 changed files with 32 additions and 3 deletions

View File

@@ -240,7 +240,7 @@ default_border pixel 2
exec_always autotiling
#fix monitor layout
exec --no-startup-id "xrandr --output HDMI-0 --left-of DP-0 && xrandr --output DP-0 --mode 2560x1440 --rate 165.00"
exec --no-startup-id "xrandr --output HDMI-0 --left-of DP-0 && xrandr --output DP-0 --mode 2560x1440 --rate 165.00 --primary"
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart

View File

@@ -15,12 +15,25 @@ in {
"/libexec"
]; # links /libexec from derivations to /run/current-system/sw
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [ libsForQt5.xdg-desktop-portal-kde ];
};
};
services.xserver = {
enable = true;
xkb.layout = config.mainUser.layout;
xkb.variant = config.mainUser.variant;
desktopManager = { xterm.enable = false; };
displayManager = { defaultSession = "none+i3"; };
displayManager = {
defaultSession = "none+i3";
sddm.enable = true;
sddm.theme = "${pkgs.sddm-astronaut}";
};
windowManager.i3 = {
enable = true;

View File

@@ -6,4 +6,5 @@
kop-monitor = pkgs.callPackage ./kop-monitor/default.nix { };
kop-fileshare = pkgs.callPackage ./kop-fileshare/default.nix { };
adam-site = pkgs.callPackage ./adam-site/default.nix { };
sddm-astronaut = pkgs.callPackage ./sddm-astronaut/default.nix { };
}

View File

@@ -0,0 +1,15 @@
{ pkgs }:
pkgs.stdenv.mkDerivation {
name = "sddm-astronaut-theme";
src = pkgs.fetchFromGitHub {
owner = "totoro-ghost";
repo = "sddm-astronaut";
hash = "sha256-j8pJvBml2LWxXNw1e/cSVXV+6w+K1lahv0uK1B9OYn0=";
rev = "6726b5e951a13d308bf17aa09e91a349d82c997b";
};
installPhase = ''
mkdir -p $out
cp -R ./* $out/
'';
}

View File

@@ -58,7 +58,7 @@
noise-supression.enable = true;
obs.enable = true;
openrgb.enable = true;
plasma.enable = true;
#plasma.enable = true;
i3.enable = true;
#gnome.enable = true;
#cosmic.enable = true;