moved images to their own package

This commit is contained in:
Gerg-L 2023-05-21 17:38:24 -04:00
parent a30da40b06
commit 3a1f1245e8
6 changed files with 24 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8 MiB

View file

@ -19,7 +19,7 @@ in {
enable = true;
displayManager = {
sessionCommands = ''
${pkgs.feh}/bin/feh --bg-center ${self + /misc/recursion.png}
${pkgs.feh}/bin/feh --bg-center ${self.packages.${pkgs.system}.images + /recursion.png}
${pkgs.numlockx}/bin/numlockx
${pkgs.picom}/bin/picom &
'';

View file

@ -2,6 +2,7 @@
config,
lib,
self,
pkgs,
...
}: let
cfg = config.localModules.DM.lightdm;
@ -14,7 +15,7 @@ in {
displayManager = {
lightdm = {
enable = true;
background = self + /misc/recursion.png;
background = self.packages.${pkgs.system}.images + /recursion.png;
extraConfig = "minimum-vt=1";
greeters.mini = {
enable = true;

21
pkgs/images.nix Normal file
View file

@ -0,0 +1,21 @@
{
fetchurl,
runCommand,
imagemagick,
}:
runCommand "my-example" {
recursion = fetchurl {
url = "https://github.com/NixOS/nixos-artwork/raw/bcdd2770f5f4839fddc9b503e68db2bc3a87ca4d/wallpapers/nix-wallpaper-recursive.png";
sha256 = "sha256-YvFrlysNGMwJ7eMFOoz0KI8AjoPN3ao+AVOgnVZzkFE=";
};
logo = fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/376ed4ba8dc2e611b7e8a62fdc680967ead5bd87/logo/nix-snowflake.svg";
sha256 = "sha256-SCuQlSPB14GFTq4XvExJ0QEuK2VIbrd5YYKHLRG/q5I=";
};
buildInputs = [imagemagick];
}
''
mkdir -p $out
cp $recursion $out/recursion.png
convert -background none -size 512x512 $logo $out/logo.png
''

View file

@ -98,7 +98,6 @@
};
#user managment
sops.secrets = {
root.neededForUsers = true;
gerg.neededForUsers = true;
};
users = {