refactor(flake): Use self instead of relative imports
This commit is contained in:
parent
c566191bb8
commit
0919a5dd18
2 changed files with 10 additions and 4 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue