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 = {
|
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 = {
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue