mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Merge pull request #153293 from aneeshusa/autocreate-htpasswd-for-restic-rest-server
nixos/restic-rest-server: Autocreate empty .htpasswd if needed for service boot
This commit is contained in:
commit
f08f8d2ae6
|
@ -95,6 +95,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = mkIf cfg.privateRepos [
|
||||
"f ${cfg.dataDir}/.htpasswd 0700 restic restic -"
|
||||
];
|
||||
|
||||
users.users.restic = {
|
||||
group = "restic";
|
||||
home = cfg.dataDir;
|
||||
|
|
Loading…
Reference in a new issue