-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit e0e6824 Author: acrease <[email protected]> Date: Tue Aug 13 22:14:38 2024 +0100 Automatic commit on exp branch commit 8ca97c2 Author: acrease <[email protected]> Date: Tue Aug 13 22:04:24 2024 +0100 Automatic commit on exp branch commit b42f5f7 Author: acrease <[email protected]> Date: Tue Aug 13 19:31:01 2024 +0100 Automatic commit on exp branch commit e59e365 Author: acrease <[email protected]> Date: Tue Aug 13 19:30:43 2024 +0100 Automatic commit on exp branch
- Loading branch information
1 parent
513daa9
commit 318735d
Showing
7 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
final: prev: { | ||
clairvoyance = prev.callPackage ./../packages/clairvoyance.nix { | ||
autoFocusPassword = true; | ||
backgroundURL = "https://wallpapercave.com/wp/wp1860715.jpg"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
stdenv, fetchFromGitHub, | ||
autoFocusPassword ? false, | ||
backgroundURL ? null, | ||
enableHDPI ? false, | ||
fileType ? "jpg" | ||
}: | ||
|
||
let bootToStr = b: if b then "true" else "false"; | ||
autoFocusPassword' = boolToStr autoFocusPassword; | ||
enableHDPI' = boolToStr enableHDPI; | ||
background = "Assets/Background."+ fileType; | ||
themeConfig = builtins.toFile "theme.conf" '' | ||
[General] | ||
background=${background} | ||
autoFocusPassword=${autoFocusPassword'} | ||
enableHDPI=${enableHDPI'} | ||
''; | ||
in stdenv.mkDerivation rec { | ||
name = "sddm-clairvoyance"; | ||
src = fetchFromGithub { | ||
owner = "eayus"; | ||
repo = "sddm-theme-clairvoyance"; | ||
rev = "fb0210303f67325162a5f132b6a3f709dcd8e181"; | ||
sha256 = "17hwh0ixnn5d9dbl1gaygbhb1zv4aamqkqf70pcgq1h9124mjshj"; | ||
}; | ||
|
||
installPhase = '' | ||
mkdir -p $out/share/sddm/themes/clairvoyance | ||
cp -r * $out/share/sddm/themes/clairvoyance | ||
cp ${themeConfig} $out/share/sddm/themes/clairvoyance/theme.conf | ||
${if backgroundURL == null then "" else "cp ${builtins.fetchurl backgroundURL} $out/share/sddm/themes/clairvoyance/${background}"} | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "eayus' sddm theme"; | ||
homepage = https://github.com/eayus/sddm-theme-clairvoyance; | ||
platforms = platforms.linux; | ||
}; | ||
} |