Skip to content

Commit

Permalink
Merge pull request #860 from thanegill/use-nixpkgs-lib.generators.toP…
Browse files Browse the repository at this point in the history
…list

Use nixpkgs generators.toPlist for launchd service generation
  • Loading branch information
Enzime authored Jan 28, 2024
2 parents 1e706ef + 3a9755f commit 0108864
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 59 deletions.
3 changes: 1 addition & 2 deletions modules/launchd/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ config, lib, pkgs, ... }:

with import ./lib.nix { inherit lib; };
with lib;

let
Expand All @@ -10,7 +9,7 @@ let

toEnvironmentText = name: value: {
name = "${value.serviceConfig.Label}.plist";
value.text = toPLIST value.serviceConfig;
value.text = generators.toPlist { } value.serviceConfig;
};

launchdConfig = import ./launchd.nix;
Expand Down
57 changes: 0 additions & 57 deletions modules/launchd/lib.nix

This file was deleted.

0 comments on commit 0108864

Please sign in to comment.