|
10 | 10 |
|
11 | 11 | passwordFilePath = mkOption { |
12 | 12 | type = with types; uniq str; |
13 | | - default = "/root/.pkpass"; |
14 | 13 | description = '' |
15 | 14 | The path to the Polykey password file. This is required to be set for the module to work, otherwise this module will fail. |
16 | 15 | ''; |
|
26 | 25 |
|
27 | 26 | recoveryCodeOutPath = mkOption { |
28 | 27 | type = with types; uniq str; |
29 | | - default = "/root/.recoveryout"; |
30 | 28 | description = '' |
31 | 29 | The path to the Polykey recovery code file output location. |
32 | 30 | ''; |
|
91 | 89 |
|
92 | 90 | passwordFilePath = mkOption { |
93 | 91 | type = with types; uniq str; |
94 | | - default = "%h/.pkpass"; |
95 | 92 | description = '' |
96 | 93 | The path to the Polykey password file. This is required to be set for the module to work, otherwise this module will fail. |
97 | 94 | ''; |
|
107 | 104 |
|
108 | 105 | recoveryCodeOutPath = mkOption { |
109 | 106 | type = with types; uniq str; |
110 | | - default = "%h/.recoveryout"; |
111 | 107 | description = '' |
112 | 108 | The path to the Polykey recovery code file output location. |
113 | 109 | ''; |
|
125 | 121 | home.packages = [ outputs.packages.${system}.default ]; |
126 | 122 |
|
127 | 123 | 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 | + }; |
129 | 129 | Service = { |
130 | 130 | ExecStartPre = '' |
131 | 131 | -${outputs.packages.${system}.default}/bin/polykey \ |
|
146 | 146 | --recovery-code-out-file ${config.programs.polykey.recoveryCodeOutPath} |
147 | 147 | ''; |
148 | 148 | }; |
| 149 | + Install = { WantedBy = [ "default.target" ]; }; |
149 | 150 | }; |
150 | 151 | }; |
151 | 152 | }; |
|
0 commit comments