Can I pass in an overlay?

This commit is contained in:
niten 2022-07-01 11:43:44 -07:00
parent e61f18116c
commit 2f528776a9
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,6 @@
inherit (self.packages."${prev.system}") wallfly;
};
nixosModule = import ./module.nix;
nixosModule = import ./module.nix self.overlay;
};
}

View File

@ -1,3 +1,5 @@
wallfly-overlay:
{ config, lib, pkgs, ... }:
with lib;
@ -49,6 +51,8 @@ in {
};
config = mkIf cfg.enable {
nixpkgs.overlays = [ wallfly-overlay ];
systemd.user.services.wallfly = {
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];