treewide: remove runtime fetch operations (#224)

Fixes #222
This commit is contained in:
NAHO 2024-02-07 12:03:02 +01:00 committed by GitHub
parent ccca01b5b0
commit a2d8d6b460
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 79 additions and 48 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, pkgs, ... }:
let
colors = config.lib.stylix.colors {
@ -8,15 +8,7 @@ let
in pkgs.stdenv.mkDerivation {
name = "${config.lib.stylix.colors.slug}-gnome-shell-theme";
src = pkgs.fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "gnome-shell";
rev = "45.1";
sha256 = "/TIkZ8y5Wv3QHLFp79Poao9fINurKs5pa4z0CRe+F8s=";
};
src = config.lib.stylix.templates.gnome-shell;
patches = [ ./shell_colors.patch ];
postPatch = ''
rm data/theme/gnome-shell-sass/{_colors.scss,_palette.scss}

View file

@ -59,6 +59,10 @@ in {
description = mdDoc "Logo to be used on the boot screen.";
type = with types; either path package;
defaultText = literalMD "NixOS logo";
# Considering that Flake inputs are currently unable to fetch individual
# files, the SVG file is fetched with `pkgs.fetchurl` to avoid downloading
# the entire repository for a single SVG file.
default = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nix-snowflake.svg";
# Reduce size