Fix SDDM sugar candy theme

This commit is contained in:
Tyler Beckman 2024-11-21 22:32:17 -07:00
parent 11ddfb1b01
commit 6d76dbd64d
Signed by: Ty
GPG key ID: 2813440C772555A4
3 changed files with 38 additions and 26 deletions

View file

@ -2,10 +2,15 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ pkgs, inputs, system, ... }: { pkgs, inputs, system, lib, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.sddm-sugar-candy-nix.nixosModules.default
];
nixpkgs.overlays = [
inputs.sddm-sugar-candy-nix.overlays.default
]; ];
fileSystems."/mnt/arch" = { fileSystems."/mnt/arch" = {
@ -92,20 +97,6 @@
# You can disable this if you're only using the Wayland session. # You can disable this if you're only using the Wayland session.
services.xserver.enable = false; services.xserver.enable = false;
# KDE + SDDM Configuration
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
sugarCandyNix = {
enable = true;
settings = {
HeaderText = ":3";
};
};
};
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
layout = "us"; layout = "us";
@ -213,4 +204,33 @@
# Enable bluetooth # Enable bluetooth
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
# KDE + SDDM Configuration
services.desktopManager.plasma6 = {
enable = true;
# enableQt5Integration = true;
};
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
enableHidpi = true;
package = lib.mkForce pkgs.libsForQt5.sddm;
extraPackages = lib.mkForce [
pkgs.libsForQt5.qtbase
pkgs.libsForQt5.qt5.qtgraphicaleffects
];
sugarCandyNix = {
enable = true;
settings = {
Background = "${pkgs.kdePackages.plasma-workspace-wallpapers}/share/wallpapers/Patak/contents/images_dark/3840x2160.png";
ScreenWidth = 3072;
ScreenHeight = 1920;
FormPosition = "left";
HaveFormBackground = true;
PartialBlur = true;
FontSize = "12";
};
};
};
} }

4
flake.lock generated
View file

@ -298,12 +298,12 @@
"owner": "Zhaith-Izaliel", "owner": "Zhaith-Izaliel",
"repo": "sddm-sugar-candy-nix", "repo": "sddm-sugar-candy-nix",
"rev": "35d6fdb4eed20d682e992ae3c6095427e89c2b74", "rev": "35d6fdb4eed20d682e992ae3c6095427e89c2b74",
"type": "gitlab" "type": "github"
}, },
"original": { "original": {
"owner": "Zhaith-Izaliel", "owner": "Zhaith-Izaliel",
"repo": "sddm-sugar-candy-nix", "repo": "sddm-sugar-candy-nix",
"type": "gitlab" "type": "github"
} }
}, },
"systems": { "systems": {

View file

@ -11,7 +11,7 @@
}; };
# SDDM Sugar Candy # SDDM Sugar Candy
sddm-sugar-candy-nix = { sddm-sugar-candy-nix = {
url = "gitlab:Zhaith-Izaliel/sddm-sugar-candy-nix"; url = "github:Zhaith-Izaliel/sddm-sugar-candy-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Home Manager + Plasma # Home Manager + Plasma
@ -49,14 +49,6 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
sddm-sugar-candy-nix.nixosModules.default
{
nixpkgs = {
overlays = [
sddm-sugar-candy-nix.overlays.default
];
};
}
# Import legacy configuration # Import legacy configuration
./configuration.nix ./configuration.nix