diff --git a/flake.lock b/flake.lock index 72f49b0..c389d3e 100644 --- a/flake.lock +++ b/flake.lock @@ -218,11 +218,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1711715736, - "narHash": "sha256-9slQ609YqT9bT/MNX9+5k5jltL9zgpn36DpFB7TkttM=", + "lastModified": 1713596654, + "narHash": "sha256-LJbHQQ5aX1LVth2ST+Kkse/DRzgxlVhTL1rxthvyhZc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "807c549feabce7eddbf259dbdcec9e0600a0660d", + "rev": "fd16bb6d3bcca96039b11aa52038fafeb6e4f4be", "type": "github" }, "original": { diff --git a/modules/nixos-icons/nixos.nix b/modules/nixos-icons/nixos.nix index cce696d..f7a93f6 100644 --- a/modules/nixos-icons/nixos.nix +++ b/modules/nixos-icons/nixos.nix @@ -8,17 +8,20 @@ with config.lib.stylix.colors; config.nixpkgs.overlays = lib.mkIf config.stylix.targets.nixos-icons.enable [(self: super: { nixos-icons = super.nixos-icons.overrideAttrs (oldAttrs: { - patchPhase = '' - substituteInPlace logo/white.svg --replace-fail '#ffffff' '#${base05}' + src = pkgs.applyPatches { + src = oldAttrs.src; + prePatch = '' + substituteInPlace logo/nix-snowflake-white.svg --replace-fail '#ffffff' '#${base05}' - # Insert attribution comment after the XML prolog - sed \ - --in-place \ - '2i' \ - logo/white.svg + # Insert attribution comment after the XML prolog + sed \ + --in-place \ + '2i' \ + logo/nix-snowflake-white.svg - ${lib.getExe pkgs.resvg} logo/white.svg logo/white.png + ${lib.getExe pkgs.resvg} logo/nix-snowflake-white.svg logo/nix-snowflake-white.png ''; + }; }); })]; }