flake/modules/lib: import lib in modules directly instead of passing it from the flake
This commit is contained in:
parent
428baed6cf
commit
f734aea139
2 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, linger }: with flake-utils.lib; eachSystem (with system; [ x86_64-linux aarch64-linux ]) (curSystem:
|
outputs = { self, nixpkgs, flake-utils, linger }: with flake-utils.lib; eachSystem (with system; [ x86_64-linux aarch64-linux ]) (curSystem:
|
||||||
let
|
let
|
||||||
util = import ./lib/util.nix;
|
|
||||||
pkgs = nixpkgs.legacyPackages.${curSystem};
|
pkgs = nixpkgs.legacyPackages.${curSystem};
|
||||||
|
|
||||||
imageName = "pihole/pihole";
|
imageName = "pihole/pihole";
|
||||||
|
@ -39,7 +38,6 @@
|
||||||
nixosModules.default = (import ./modules/pihole-container.factory.nix) {
|
nixosModules.default = (import ./modules/pihole-container.factory.nix) {
|
||||||
piholeFlake = self;
|
piholeFlake = self;
|
||||||
lingerFlake = linger;
|
lingerFlake = linger;
|
||||||
inherit util;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = let
|
devShells.default = let
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ piholeFlake, lingerFlake, util }: { config, pkgs, lib, ... }: with lib; with builtins; let
|
{ piholeFlake, lingerFlake }: { config, pkgs, lib, ... }: with lib; with builtins; let
|
||||||
inherit (util) collectAttrFragments accessValueOfFragment toEnvValue;
|
inherit (import ../lib/util.nix) collectAttrFragments accessValueOfFragment toEnvValue;
|
||||||
|
|
||||||
cfg = config.services.pihole;
|
cfg = config.services.pihole;
|
||||||
hostUserCfg = config.users.users.${cfg.hostConfig.user};
|
hostUserCfg = config.users.users.${cfg.hostConfig.user};
|
||||||
|
|
Loading…
Add table
Reference in a new issue