Hello, I am very new to Nixos, and with the help of many same topic on this site, I managed to change to sddm and got sugar-candy running:
Apply an custom theme to SDDM
Fetch package from github
But the problem is that I don’t know how to configure it, because the packages installed is pretty much untouchable, even with sudo privilege.
Here’s my setup:
In configuration.nix:
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# Get sugar-candy from github in sugar-candy.nix then call it here
(callPackage ./sugar-candy.nix{}).sddm-sugar-candy-theme
libsForQt5.qt5.qtgraphicaleffects #required for sugar candy
];
# Enable sddm and use theme sugar-candy
services.xserver.displayManager.sddm = {
enable = true;
theme = "sugar-candy";
};
}
In ./sugar-candy.nix
{ stdenv, fetchFromGitHub }:
{
sddm-sugar-candy-theme = stdenv.mkDerivation rec {
pname = "sddm-sugar-candy-theme";
version = "1.6";
dontBuild = true;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/sugar-candy
'';
src = fetchFromGitHub {
owner = "Kangie";
repo = "sddm-sugar-candy";
rev = "v1.6";
sha256 = "sha256-p2d7I0UBP63baW/q9MexYJQcqSmZ0L5rkwK3n66gmqM=";
};
};
}
Now that I got it running, I realize that I need to configure it somehow. But I’m obviously can’t touch it even with sudo privilege.
How do I configure it now that I have it running?