added onepassword-connect group
This commit is contained in:
parent
e30b557622
commit
79eabb1cc6
1 changed files with 6 additions and 4 deletions
|
@ -22,8 +22,8 @@
|
||||||
inherit (config.users.users.named) group;
|
inherit (config.users.users.named) group;
|
||||||
};
|
};
|
||||||
"onepassword-connect-json" = {
|
"onepassword-connect-json" = {
|
||||||
owner = config.users.users.named.name;
|
owner = config.users.users.onepassword-connect.name;
|
||||||
inherit (config.users.users.named) group;
|
inherit (config.users.users.onepassword-connect.name) group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -133,9 +133,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# 1Password Connect API and Sync services
|
# 1Password Connect API and Sync services
|
||||||
|
users.groups.onepassword-connect = {};
|
||||||
users.users = {
|
users.users = {
|
||||||
onepassword-connect = {
|
onepassword-connect = {
|
||||||
home = "/var/lib/onepassword-connect";
|
home = "/var/lib/onepassword-connect";
|
||||||
|
group = "onepassword-connect";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -161,7 +163,7 @@
|
||||||
image = "docker.io/1password/connect-api:1.7.2";
|
image = "docker.io/1password/connect-api:1.7.2";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ports = [ "8080:8080" ];
|
ports = [ "8080:8080" ];
|
||||||
user = "onepassword:root";
|
user = "onepassword:onepassword-connect";
|
||||||
volumes = [
|
volumes = [
|
||||||
"${config.sops.secrets."onepassword-connect-json".path}:/home/opuser/.op/1password-credentials.json"
|
"${config.sops.secrets."onepassword-connect-json".path}:/home/opuser/.op/1password-credentials.json"
|
||||||
"/var/lib/onepassword-connect:/home/opuser/.op/data"
|
"/var/lib/onepassword-connect:/home/opuser/.op/data"
|
||||||
|
@ -172,7 +174,7 @@
|
||||||
image = "docker.io/1password/connect-sync:1.7.2";
|
image = "docker.io/1password/connect-sync:1.7.2";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ports = [ "8081:8080" ];
|
ports = [ "8081:8080" ];
|
||||||
user = "onepassword:root";
|
user = "onepassword:onepassword-connect";
|
||||||
volumes = [
|
volumes = [
|
||||||
"${config.sops.secrets."onepassword-connect-json".path}:/home/opuser/.op/1password-credentials.json"
|
"${config.sops.secrets."onepassword-connect-json".path}:/home/opuser/.op/1password-credentials.json"
|
||||||
"/var/lib/onepassword-connect:/home/opuser/.op/data"
|
"/var/lib/onepassword-connect:/home/opuser/.op/data"
|
||||||
|
|
Reference in a new issue