refactor(flake): Use self instead of relative imports

This commit is contained in:
punkfairie 2024-11-13 18:28:18 -08:00
parent c566191bb8
commit 0919a5dd18
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
2 changed files with 10 additions and 4 deletions

View file

@ -4,6 +4,8 @@
outputs =
{ self, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
systems = [
"x86_64-linux"
];
@ -18,9 +20,9 @@
{
imports = [
inputs.rose-pine.homeManagerModules.rose-pine
./modules/home/iconTheme.nix
./modules/home/shellAbbrs.nix
./home
"${self}/modules/home/iconTheme.nix"
"${self}/modules/home/shellAbbrs.nix"
"${self}/home"
];
};
};

View file

@ -1,13 +1,17 @@
{
flake,
pkgs,
lib,
config,
...
}:
let
inherit (flake.inputs) self;
in
{
home.packages = with pkgs; [
# Could not get overlays or overrides to work.
(callPackage ./../../derivations/figlet-with-fonts.nix { })
(callPackage "${self}/derivations/figlet-with-fonts.nix" { })
];
programs.fish.functions = lib.mkIf config.programs.fish.enable {