Skip to content

Commit

Permalink
Support systemd.tmpfiles
Browse files Browse the repository at this point in the history
Signed-off-by: magic_rb <[email protected]>
  • Loading branch information
MagicRB committed Jan 1, 2025
1 parent f9e4b01 commit e69691e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/nixos/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
};

config = {
services.tmpfilesd = lib.mkIf (config.nixos.systemd.tmpfiles != []) {
enable = true;
entries = config.nixos.systemd.tmpfiles;
};

init.services = (
lib.flip lib.mapAttrs config.nixos.systemd.services (
n: v:
Expand Down

0 comments on commit e69691e

Please sign in to comment.