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 = { atuin-environment = {
file = ./atuin/environment.age; file = ./atuin/environment.age;
owner = "atuin";
group = "atuin";
}; };
freshrss-user-password = { freshrss-user-password = {
@ -117,7 +115,6 @@
anonymous-overflow-config = { anonymous-overflow-config = {
file = ./anonymous-overflow/config.age; file = ./anonymous-overflow/config.age;
#mode = "444";
}; };
anonymous-overflow-auth = { anonymous-overflow-auth = {

View file

@ -1,13 +1,6 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
users.users.atuin = {
group = "atuin";
isSystemUser = true;
};
users.groups.atuin = { };
systemd.services.atuin-sync = { systemd.services.atuin-sync = {
description = "atuin sync server"; description = "atuin sync server";
@ -19,8 +12,7 @@
ExecStart = "${pkgs.atuin}/bin/atuin server start"; ExecStart = "${pkgs.atuin}/bin/atuin server start";
EnvironmentFile = [ config.age.secrets.atuin-environment.path ]; EnvironmentFile = [ config.age.secrets.atuin-environment.path ];
Restart = "on-failure"; Restart = "on-failure";
User = "atuin"; DynamicUser = true;
Group = "atuin";
RuntimeDirectory = "atuin"; RuntimeDirectory = "atuin";
RuntimeDirectoryMode = "0700"; RuntimeDirectoryMode = "0700";
}; };