chore: Replace callPackage with flake package

Removes the possibility of ../paths breaking.
This commit is contained in:
Donovan Glover 2024-08-30 13:37:28 -04:00
parent 3c89c82ced
commit 0b44a17ca9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
5 changed files with 7 additions and 11 deletions

View File

@ -1,8 +1,9 @@
{ pkgs, config, ... }:
{ nix-config, pkgs, config, ... }:
let
inherit (config.home) homeDirectory;
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
inherit (nix-config.packages.${pkgs.system}) fluent-icons;
inherit (config.xdg.userDirs)
download
@ -11,8 +12,6 @@ let
pictures
videos
;
fluent-icons = pkgs.callPackage ../packages/fluent-icons.nix { };
in
{
home.packages = with pkgs; [ eww ];

View File

@ -1,13 +1,12 @@
{ pkgs, lib, ... }:
{ nix-config, pkgs, lib, ... }:
let
inherit (lib) mkForce;
inherit (nix-config.packages.${pkgs.system}) osu-backgrounds;
opacity = "0.95";
super = "SUPER";
osu-backgrounds = pkgs.callPackage ../packages/osu-backgrounds.nix { };
gapsScript = "hypr/gaps.fish";
randomBackgroundScript = "hypr/random-bg.fish";
swapBackgroundScript = "hypr/swap-bg.fish";

View File

@ -8,8 +8,7 @@
let
inherit (lib) mkIf singleton;
friendlyfox = pkgs.callPackage ../packages/friendlyfox.nix { };
inherit (nix-config.packages.${pkgs.system}) friendlyfox;
in
{
programs.librewolf = {

View File

@ -11,8 +11,7 @@ let
inherit (lib.gvariant) mkTuple mkUint32;
inherit (config.modules.system) username;
inherit (builtins) attrValues;
phosh-backgrounds = pkgs.callPackage ../../packages/phosh-backgrounds.nix { };
inherit (self.packages.${pkgs.system}) phosh-backgrounds;
getColorCh = colorName: channel: config.lib.stylix.colors."${colorName}-rgb-${channel}";

View File

@ -35,7 +35,7 @@ let
noto-fonts-emoji
;
stylix-background = pkgs.callPackage ../packages/stylix-background.nix {
stylix-background = nix-config.packages.${pkgs.system}.stylix-background.override {
color = config.lib.stylix.colors.base00;
};