Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions modules/services-modular/service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
# drop in unchanged. Then overrides the primary unit's `wantedBy` default
# to `default.target`, since user units typically attach to that instead
# of `multi-user.target`.
{ lib, nixpkgsPath, ... }:
args@{
lib,
nixpkgsPath,
...
}:
let
systemdServiceModule = import (nixpkgsPath + "/nixos/modules/system/service/systemd/service.nix");
systemdServiceModuleArgs = builtins.intersectAttrs (builtins.functionArgs systemdServiceModule) args;
in
{
imports = [
(nixpkgsPath + "/nixos/modules/system/service/systemd/service.nix")
(systemdServiceModule systemdServiceModuleArgs)
];

# The empty key `""` is the modular service's *primary* unit (see
Expand Down
Loading