From 4641b60a074fa2e2420341d81321a399d56b166d Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 3 Nov 2024 13:18:08 -0600 Subject: download wallpapers --- modules/home/default.nix | 2 ++ modules/home/wallpapers.nix | 14 ++++++++++++++ modules/hosts/T430/home.nix | 1 + modules/hosts/T495/home.nix | 1 + todo | 1 - 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 modules/home/wallpapers.nix diff --git a/modules/home/default.nix b/modules/home/default.nix index 2c19b8c..a651463 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -12,8 +12,10 @@ ./initial-home-setup.nix ./pcmanfm.nix # TODO mk name changeable & doesn't seem to work right now ./theme.nix + ./wallpapers.nix ]; alacritty.enable = lib.mkDefault true; theme.mint.enable = lib.mkDefault true; + wallpapers.enable = lib.mkDefault false; } diff --git a/modules/home/wallpapers.nix b/modules/home/wallpapers.nix new file mode 100644 index 0000000..d7e067a --- /dev/null +++ b/modules/home/wallpapers.nix @@ -0,0 +1,14 @@ +{ lib, config, pkgs, ... }: { + options = { + wallpapers.enable = lib.mkEnableOption "enables all wallpapers"; + }; + + config = lib.mkIf config.wallpapers.enable { + home.file.".local/share/wallpaper" = { + source = pkgs.fetchzip { + url = "https://tjkeller.xyz/permalinks/wallpapers.tar"; + hash = "sha256-lhj9wUMZfd0XOrUtWY9HB64oXrS/EjsvsaJHzu4ucFg="; + }; + }; + }; +} diff --git a/modules/hosts/T430/home.nix b/modules/hosts/T430/home.nix index 1e5b3d1..9885a06 100644 --- a/modules/hosts/T430/home.nix +++ b/modules/hosts/T430/home.nix @@ -2,4 +2,5 @@ imports = [ ../../home ]; alacritty.font.size = 9; + wallpapers.enable = true; } diff --git a/modules/hosts/T495/home.nix b/modules/hosts/T495/home.nix index cf0c956..cf86990 100644 --- a/modules/hosts/T495/home.nix +++ b/modules/hosts/T495/home.nix @@ -3,6 +3,7 @@ theme.mint.theme.color = "Dark-Purple"; theme.mint.icons.color = "Purple"; + wallpapers.enable = true; home.file.input-leap-config = { source = ./resources/input-leap/; diff --git a/todo b/todo index f6d5c82..8a2a6dc 100644 --- a/todo +++ b/todo @@ -8,7 +8,6 @@ ff violentmonkey userscripts pcmanfm config FIX fonts.fontconfig.antialias = false && gtk font override on librex60 cursor size changing all the time -wallpapers # Secrets thunderbird (https://home-manager-options.extranix.com/?query=thunderbird&release=release-24.05) -- cgit v1.2.3