Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -1,4 +1,10 @@
{ lib, stdenv, fetchFromGitHub, fira-mono, wallpaper ? null }:
{ lib
, stdenv
, fetchFromGitHub
, fira-mono
, wallpaper ? null
,
}:
with lib;
stdenv.mkDerivation {
pname = "sddm-theme-clairvoyance";
@ -13,12 +19,14 @@ stdenv.mkDerivation {
buildInputs = [ fira-mono ];
installPhase = ''
mkdir -p $out/usr/share/sddm/themes/
cp -a . $out/usr/share/sddm/themes/clairvoyance
'' + optionalString (wallpaper != null) ''
cp ${wallpaper} $out/usr/share/sddm/themes/clairvoyance/Assets/Background.jpg
'';
installPhase =
''
mkdir -p $out/usr/share/sddm/themes/
cp -a . $out/usr/share/sddm/themes/clairvoyance
''
+ optionalString (wallpaper != null) ''
cp ${wallpaper} $out/usr/share/sddm/themes/clairvoyance/Assets/Background.jpg
'';
meta = with lib; {
description = "Clairvoyance theme for SDDM";