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:
Pascal Bach 2022-01-03 09:33:10 +01:00 committed by GitHub
commit f08f8d2ae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;