1
0
Fork 0

atuin: use DynamicUser

This commit is contained in:
Daniel Kempkens 2023-03-20 20:14:08 +01:00
parent 66b56e0b17
commit c5b49d4446
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 1 additions and 12 deletions

View file

@ -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 = {

View file

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