atuin: use DynamicUser
This commit is contained in:
parent
66b56e0b17
commit
c5b49d4446
2 changed files with 1 additions and 12 deletions
|
@ -72,8 +72,6 @@
|
|||
|
||||
atuin-environment = {
|
||||
file = ./atuin/environment.age;
|
||||
owner = "atuin";
|
||||
group = "atuin";
|
||||
};
|
||||
|
||||
freshrss-user-password = {
|
||||
|
@ -117,7 +115,6 @@
|
|||
|
||||
anonymous-overflow-config = {
|
||||
file = ./anonymous-overflow/config.age;
|
||||
#mode = "444";
|
||||
};
|
||||
|
||||
anonymous-overflow-auth = {
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
users.users.atuin = {
|
||||
group = "atuin";
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
users.groups.atuin = { };
|
||||
|
||||
systemd.services.atuin-sync = {
|
||||
description = "atuin sync server";
|
||||
|
||||
|
@ -19,8 +12,7 @@
|
|||
ExecStart = "${pkgs.atuin}/bin/atuin server start";
|
||||
EnvironmentFile = [ config.age.secrets.atuin-environment.path ];
|
||||
Restart = "on-failure";
|
||||
User = "atuin";
|
||||
Group = "atuin";
|
||||
DynamicUser = true;
|
||||
RuntimeDirectory = "atuin";
|
||||
RuntimeDirectoryMode = "0700";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue