Finally, automatic conversion of gif backgrounds for color pallette
This commit is contained in:
@@ -58,7 +58,17 @@
|
||||
#background = ./GitS_other_alley_zoom.png;
|
||||
#background = ./GitS_alley_to_water_zoom.png;
|
||||
#background = ./waneella/Destination_waneella.png;
|
||||
background = ./waneella/Apr_05-21.png;
|
||||
# background = ./waneella/Apr_05-21.png;
|
||||
background = ./waneella/Early-days_waneella.gif;
|
||||
mk_static = (pkgs: background: (derivation {
|
||||
name = "static_background";
|
||||
system = "x86_64-linux";
|
||||
# builder = "${pkgs.imagemagick}/bin/magick";
|
||||
# args = ["${background}[0]" "-coalesce" "png:$out"];
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
# args = ["-c" "${pkgs.imagemagick}/bin/magick" "${background}[0]" "-coalesce" "png:$out"];
|
||||
args = ["-c" "${pkgs.imagemagick}/bin/magick ${background}[0] -coalesce png:$out"];
|
||||
}));
|
||||
homeManagerSharedModule = {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.nathan = ((import ./home-manager/home.nix) { username = "nathan"; homeDirectory = "/home/nathan"; backgroundImg = background; email = "miloignis@gmail.com"; });
|
||||
@@ -114,7 +124,7 @@
|
||||
#image = ./ruinedmansion.jpg;
|
||||
#image = ./130_1zhJtUA.jpeg; #the city street
|
||||
#image = ./GitS_alley_to_water_zoom.png;
|
||||
image = background;
|
||||
image = (mk_static pkgs background);
|
||||
#image = pkgs.fetchurl {
|
||||
# url = "https://raw.githubusercontent.com/kiedtl/walls/refs/heads/master/green-tea.jpg";
|
||||
# sha256 = "sha256-+NcZMBnbEWurmkOkzdrxGwBlxzUO3Sitt6Uoq9plc7o=";
|
||||
|
||||
Reference in New Issue
Block a user