From 45871c09e8563212737c3499930fed5cfa16df88 Mon Sep 17 00:00:00 2001 From: Chris Josten Date: Fri, 15 May 2020 02:23:33 +0200 Subject: [PATCH] Add my own SDDM theme! --- common/default.nix | 2 ++ common/devel/pkgs.nix | 3 +++ common/gui/default.nix | 1 + common/gui/pkgs.nix | 2 ++ overlays/default.nix | 7 +++++++ overlays/nx-sddm.nix | 14 ++++++++++++++ 6 files changed, 29 insertions(+) create mode 100644 overlays/default.nix create mode 100644 overlays/nx-sddm.nix diff --git a/common/default.nix b/common/default.nix index 03687ef..4339d2e 100644 --- a/common/default.nix +++ b/common/default.nix @@ -6,4 +6,6 @@ ./virt.nix ./users.nix ]; + + nixpkgs.overlays = [(import ../overlays) ]; } diff --git a/common/devel/pkgs.nix b/common/devel/pkgs.nix index 710ba5d..728fb27 100644 --- a/common/devel/pkgs.nix +++ b/common/devel/pkgs.nix @@ -19,6 +19,9 @@ gradle jetbrains.idea-ultimate maven + + # NixOS + nix-prefetch-scripts ]; }; } diff --git a/common/gui/default.nix b/common/gui/default.nix index b17ad78..0772d1d 100644 --- a/common/gui/default.nix +++ b/common/gui/default.nix @@ -9,6 +9,7 @@ enable = true; displayManager.sddm.enable = true; desktopManager.plasma5.enable = true; + displayManager.sddm.theme = "nx-sddm"; }; networking.networkmanager.enable = true; diff --git a/common/gui/pkgs.nix b/common/gui/pkgs.nix index df03193..d4385b4 100644 --- a/common/gui/pkgs.nix +++ b/common/gui/pkgs.nix @@ -42,7 +42,9 @@ packagekit-qt plasma-desktop plasma-integration + plasma5.sddm-kcm plasma5.xdg-desktop-portal-kde + my.sddm-nx sddm kdeApplications.spectacle diff --git a/overlays/default.nix b/overlays/default.nix new file mode 100644 index 0000000..b41a6b6 --- /dev/null +++ b/overlays/default.nix @@ -0,0 +1,7 @@ +self: super: + +rec { + my = super.recurseIntoAttrs { + sddm-nx = super.callPackage ./nx-sddm.nix {}; + }; +} diff --git a/overlays/nx-sddm.nix b/overlays/nx-sddm.nix new file mode 100644 index 0000000..133b8af --- /dev/null +++ b/overlays/nx-sddm.nix @@ -0,0 +1,14 @@ +{ stdenv}: + +stdenv.mkDerivation { + name = "nx-sddm"; + src = fetchGit { + url = https://githee.netsoj.nl/chris-config/sddm-nx.git; + rev ="636e786f88d2e9838c8096465d8b4e9b3b0914aa"; + #sha256 = "1nwfisz13y2pfkrnxlkrqp1j546m1na9bkdrd0khm5ilb71d7win"; + }; + installPhase = '' + mkdir -p $out/share/sddm/themes/nx-sddm + cp -r . $out/share/sddm/themes/nx-sddm + ''; +}