Format everything with alejandra
This commit is contained in:
parent
82bbd7ce87
commit
7888103b1e
100 changed files with 2827 additions and 2756 deletions
|
|
@ -1,56 +1,56 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
currentTheme = config.services.xserver.displayManager.sddm.theme;
|
||||
|
||||
sddm-sugar-candy = pkgs.stdenv.mkDerivation {
|
||||
pname = "sddm-sugar-candy";
|
||||
version = "master";
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://framagit.org/MarianArlt/sddm-sugar-candy.git";
|
||||
hash = "sha256-XggFVsEXLYklrfy1ElkIp9fkTw4wvXbyVkaVCZq4ZLU=";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sddm/themes/sugar-candy
|
||||
cp -r /build/sddm-sugar-candy/* $out/share/sddm/themes/sugar-candy
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
|
||||
/*
|
||||
Adds a theme.conf.user file to the current sddm theme's folder,
|
||||
allowing you to change it's configuration without needing to
|
||||
repackage it
|
||||
*/
|
||||
customcfg = pkgs.stdenv.mkDerivation {
|
||||
name = "sddm-theme-customizer";
|
||||
dontUnpack = true;
|
||||
# TODO: generate theme.conf.user outside of installPhase
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sddm/themes/${currentTheme}/
|
||||
echo "[General]
|
||||
background = ${pkgs.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/5120x2880.png" >> $out/share/sddm/themes/${currentTheme}/theme.conf.user
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
# Enable SDDM.
|
||||
services.xserver.displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "sugar-candy";
|
||||
settings = {
|
||||
General = { Numlock = "on"; };
|
||||
Theme = { CursorTheme = "Breeze_Snow"; };
|
||||
};
|
||||
};
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
currentTheme = config.services.xserver.displayManager.sddm.theme;
|
||||
|
||||
environment.systemPackages = [ sddm-sugar-candy customcfg ];
|
||||
sddm-sugar-candy = pkgs.stdenv.mkDerivation {
|
||||
pname = "sddm-sugar-candy";
|
||||
version = "master";
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://framagit.org/MarianArlt/sddm-sugar-candy.git";
|
||||
hash = "sha256-XggFVsEXLYklrfy1ElkIp9fkTw4wvXbyVkaVCZq4ZLU=";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sddm/themes/sugar-candy
|
||||
cp -r /build/sddm-sugar-candy/* $out/share/sddm/themes/sugar-candy
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
|
||||
/*
|
||||
Adds a theme.conf.user file to the current sddm theme's folder,
|
||||
allowing you to change it's configuration without needing to
|
||||
repackage it
|
||||
*/
|
||||
customcfg = pkgs.stdenv.mkDerivation {
|
||||
name = "sddm-theme-customizer";
|
||||
dontUnpack = true;
|
||||
# TODO: generate theme.conf.user outside of installPhase
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sddm/themes/${currentTheme}/
|
||||
echo "[General]
|
||||
background = ${pkgs.plasma-workspace-wallpapers}/share/wallpapers/MilkyWay/contents/images/5120x2880.png" >> $out/share/sddm/themes/${currentTheme}/theme.conf.user
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
in {
|
||||
# Enable SDDM.
|
||||
services.xserver.displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "sugar-candy";
|
||||
settings = {
|
||||
General = {Numlock = "on";};
|
||||
Theme = {CursorTheme = "Breeze_Snow";};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [sddm-sugar-candy customcfg];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue