From 13f2f79e6d5cdd80ea4ae0997719141369d6dac7 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 6 Apr 2021 09:53:56 +0100 Subject: [PATCH] graphical-client: add wallpapers If I find more I like, I'll add them here, I guess. For the moment, there's just the one. --- nix/pkgs/default.nix | 1 + nix/pkgs/lukegb-wallpapers/default.nix | 14 ++++++++++++++ ops/nixos/lib/home-manager/graphical-client.nix | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 nix/pkgs/lukegb-wallpapers/default.nix diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 713ac5207d..99f25e031c 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -27,5 +27,6 @@ alertmanager-discord = pkgs.callPackage ./alertmanager-discord.nix {}; prometheus-snmp-config = import ./prometheus-snmp-config args; flameshot = pkgs.libsForQt5.callPackage ./flameshot {}; + lukegb-wallpapers = pkgs.callPackage ./lukegb-wallpapers {}; } // (import ./heptapod-runner.nix args) // (import ./lightspeed args) diff --git a/nix/pkgs/lukegb-wallpapers/default.nix b/nix/pkgs/lukegb-wallpapers/default.nix new file mode 100644 index 0000000000..5b61140e98 --- /dev/null +++ b/nix/pkgs/lukegb-wallpapers/default.nix @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +{ lib, linkFarm, fetchurl }: +linkFarm "lukegb-wallpapers" [ + { + name = "lunik1-gruvbox-dark-rainbow.png"; + path = fetchurl { + url = "https://github.com/lunik1/nixos-logo-gruvbox-wallpaper/raw/fce9108e2938eb03d8c7a779bbdafd4663d3bea4/png/gruvbox-dark-rainbow.png"; + sha256 = "sha256:036gqhbf6s5ddgvfbgn6iqbzgizssyf7820m5815b2gd748jw8zc"; + }; + } +] diff --git a/ops/nixos/lib/home-manager/graphical-client.nix b/ops/nixos/lib/home-manager/graphical-client.nix index 40a1094f3d..cbda675917 100644 --- a/ops/nixos/lib/home-manager/graphical-client.nix +++ b/ops/nixos/lib/home-manager/graphical-client.nix @@ -48,6 +48,12 @@ systemctl --user restart ssh-agent ''; + services.random-background = { + enable = true; + imageDirectory = "${depot.nix.pkgs.lukegb-wallpapers}"; + interval = null; + }; + xsession.windowManager.i3 = { enable = true; config = {