diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-29 18:06:27 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-29 20:10:33 +0000 |
commit | 5a54b0a20c80356de5098694353f506e73fb883f (patch) | |
tree | 90404cd3cb79361b7251e8c9cc536299f6ff12c4 | |
parent | e28dc26084f5dc65de564a6e4dddf13a239444fd (diff) |
meson: install systemd files
Change-Id: Idacf602fd379c82a051f00df2293cb02c8b286d4
-rw-r--r-- | misc/meson.build | 2 | ||||
-rw-r--r-- | misc/systemd/meson.build | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/misc/meson.build b/misc/meson.build index f279aeff4..a6d1f944b 100644 --- a/misc/meson.build +++ b/misc/meson.build @@ -1,3 +1,5 @@ subdir('bash') subdir('fish') subdir('zsh') + +subdir('systemd') diff --git a/misc/systemd/meson.build b/misc/systemd/meson.build new file mode 100644 index 000000000..26e20af95 --- /dev/null +++ b/misc/systemd/meson.build @@ -0,0 +1,25 @@ +foreach config : [ 'nix-daemon.socket', 'nix-daemon.service' ] + configure_file( + input : config + '.in', + output : config, + install : true, + install_dir : prefix / 'lib/systemd/system', + install_mode : 'rw-r--r--', + configuration : { + 'storedir' : store_dir, + 'localstatedir' : state_dir, + 'bindir' : bindir, + }, + ) +endforeach + +configure_file( + input : 'nix-daemon.conf.in', + output : 'nix-daemon.conf', + install : true, + install_dir : prefix / 'lib/tmpfiles.d', + install_mode : 'rw-r--r--', + configuration : { + 'localstatedir' : state_dir, + }, +) |