tangled
alpha
login
or
join now
tangled.org
/
infra
20
fork
atom
Tangled infrastructure definitions in Nix
20
fork
atom
overview
issues
pulls
pipelines
spindle unholiness
Signed-off-by: oppiliappan <me@oppi.li>
oppi.li
7 months ago
645e32d2
1d59a1b0
verified
This commit was signed with the committer's
known signature
.
oppi.li
SSH Key Fingerprint:
SHA256:yQs05DbrlPDC2pBXLxqOdLYEswq3oEBnHaJiBP7bOlM=
+21
-12
2 changed files
expand all
collapse all
unified
split
hosts
nixery
services
openbao
openbao.nix
proxy.nix
+9
hosts/nixery/services/openbao/openbao.nix
···
1
1
+
{ config, pkgs, lib, ... }:
1
2
{
2
3
# Create openbao user and group
3
4
users.groups.openbao = {};
···
8
9
home = "/var/lib/openbao";
9
10
createHome = true;
10
11
description = "OpenBao service user";
12
12
+
};
13
13
+
14
14
+
systemd.services.openbao = {
15
15
+
serviceConfig = {
16
16
+
DynamicUser = lib.mkForce false;
17
17
+
User = "openbao";
18
18
+
Group = "openbao";
19
19
+
};
11
20
};
12
21
13
22
services.openbao = {
+12
-12
hosts/nixery/services/openbao/proxy.nix
···
83
83
'';
84
84
85
85
# Create necessary directories and files
86
86
-
# systemd.tmpfiles.rules = [
87
87
-
# # Directories
88
88
-
# "d /var/lib/openbao 0755 root root -"
89
89
-
# "d /var/lib/openbao/cache 0755 root root -"
90
90
-
# "d /var/log/openbao 0755 root root -"
91
91
-
# "d /etc/openbao 0755 root root -"
86
86
+
systemd.tmpfiles.rules = [
87
87
+
# Directories
88
88
+
"d /var/lib/openbao 0755 root root -"
89
89
+
"d /var/lib/openbao/cache 0755 root root -"
90
90
+
"d /var/log/openbao 0755 root root -"
91
91
+
"d /etc/openbao 0755 root root -"
92
92
93
93
-
# # Credential files (content must be populated externally)
94
94
-
# "f /etc/openbao/role-id 0600 root root -"
95
95
-
# "f /etc/openbao/secret-id 0600 root root -"
93
93
+
# Credential files (content must be populated externally)
94
94
+
"f /etc/openbao/role-id 0600 root root -"
95
95
+
"f /etc/openbao/secret-id 0600 root root -"
96
96
97
97
-
# # Configuration file
98
98
-
# "f /etc/openbao/proxy.hcl 0644 root root -"
99
99
-
# ];
97
97
+
# Configuration file
98
98
+
"f /etc/openbao/proxy.hcl 0644 root root -"
99
99
+
];
100
100
}