mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
tmpfiles: use only xdg.configFile
This is a small refactor, and minimises the impact of home-manager#4398.
This commit is contained in:
parent
f5c15668f9
commit
7ac2cd01ae
1 changed files with 10 additions and 12 deletions
|
@ -27,8 +27,8 @@ in {
|
||||||
platforms.linux)
|
platforms.linux)
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg = {
|
xdg.configFile = {
|
||||||
dataFile."user-tmpfiles.d/home-manager.conf" = {
|
"user-tmpfiles.d/home-manager.conf" = {
|
||||||
text = ''
|
text = ''
|
||||||
# This file is created automatically and should not be modified.
|
# This file is created automatically and should not be modified.
|
||||||
# Please change the option ‘systemd.user.tmpfiles.rules’ instead.
|
# Please change the option ‘systemd.user.tmpfiles.rules’ instead.
|
||||||
|
@ -36,16 +36,14 @@ in {
|
||||||
'';
|
'';
|
||||||
onChange = "${pkgs.systemd}/bin/systemd-tmpfiles --user --create";
|
onChange = "${pkgs.systemd}/bin/systemd-tmpfiles --user --create";
|
||||||
};
|
};
|
||||||
configFile = {
|
"systemd/user/basic.target.wants/systemd-tmpfiles-setup.service".source =
|
||||||
"systemd/user/basic.target.wants/systemd-tmpfiles-setup.service".source =
|
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";
|
||||||
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";
|
"systemd/user/systemd-tmpfiles-setup.service".source =
|
||||||
"systemd/user/systemd-tmpfiles-setup.service".source =
|
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";
|
||||||
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-setup.service";
|
"systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer".source =
|
||||||
"systemd/user/timers.target.wants/systemd-tmpfiles-clean.timer".source =
|
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-clean.timer";
|
||||||
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-clean.timer";
|
"systemd/user/systemd-tmpfiles-clean.service".source =
|
||||||
"systemd/user/systemd-tmpfiles-clean.service".source =
|
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-clean.service";
|
||||||
"${pkgs.systemd}/example/systemd/user/systemd-tmpfiles-clean.service";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue