refactor(flake): Use self instead of relative imports
This commit is contained in:
parent
291e7226f8
commit
2361fd8fad
2 changed files with 10 additions and 4 deletions
|
@ -4,6 +4,8 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self, ... }@inputs:
|
{ self, ... }@inputs:
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
debug = true;
|
||||||
|
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
|
@ -18,9 +20,9 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.rose-pine.homeManagerModules.rose-pine
|
inputs.rose-pine.homeManagerModules.rose-pine
|
||||||
./modules/home/iconTheme.nix
|
"${self}/modules/home/iconTheme.nix"
|
||||||
./modules/home/shellAbbrs.nix
|
"${self}/modules/home/shellAbbrs.nix"
|
||||||
./home
|
"${self}/home"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
{
|
{
|
||||||
|
flake,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
inherit (flake.inputs) self;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Could not get overlays or overrides to work.
|
# 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 {
|
programs.fish.functions = lib.mkIf config.programs.fish.enable {
|
||||||
|
|
Loading…
Reference in a new issue