Skip to content

Commit 3942fb3

Browse files
authored
Merge pull request #298 from MatrixAI/feature-module-update
Nix module updates
2 parents 219b965 + 17d7d40 commit 3942fb3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
passwordFilePath = mkOption {
1212
type = with types; uniq str;
13-
default = "/root/.pkpass";
1413
description = ''
1514
The path to the Polykey password file. This is required to be set for the module to work, otherwise this module will fail.
1615
'';
@@ -26,7 +25,6 @@
2625

2726
recoveryCodeOutPath = mkOption {
2827
type = with types; uniq str;
29-
default = "/root/.recoveryout";
3028
description = ''
3129
The path to the Polykey recovery code file output location.
3230
'';
@@ -91,7 +89,6 @@
9189

9290
passwordFilePath = mkOption {
9391
type = with types; uniq str;
94-
default = "%h/.pkpass";
9592
description = ''
9693
The path to the Polykey password file. This is required to be set for the module to work, otherwise this module will fail.
9794
'';
@@ -107,7 +104,6 @@
107104

108105
recoveryCodeOutPath = mkOption {
109106
type = with types; uniq str;
110-
default = "%h/.recoveryout";
111107
description = ''
112108
The path to the Polykey recovery code file output location.
113109
'';
@@ -125,7 +121,11 @@
125121
home.packages = [ outputs.packages.${system}.default ];
126122

127123
systemd.user.services.polykey = {
128-
Unit = { Description = "Polykey Agent"; };
124+
Unit = {
125+
Description = "Polykey Agent";
126+
After = [ "default.target" "network.target" ];
127+
Wants = [ "network.target" ];
128+
};
129129
Service = {
130130
ExecStartPre = ''
131131
-${outputs.packages.${system}.default}/bin/polykey \
@@ -146,6 +146,7 @@
146146
--recovery-code-out-file ${config.programs.polykey.recoveryCodeOutPath}
147147
'';
148148
};
149+
Install = { WantedBy = [ "default.target" ]; };
149150
};
150151
};
151152
};

0 commit comments

Comments
 (0)