openbao auto unseal
This commit is contained in:
parent
1b4a53b10e
commit
b7330b4c09
5 changed files with 113 additions and 114 deletions
|
|
@ -1,17 +1,4 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
time.timeZone = null;
|
||||
services.automatic-timezoned.enable = true;
|
||||
|
||||
# Add a polkit rule so automatic-timezoned can change timezone
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.freedesktop.timedate1.set-timezone" &&
|
||||
subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
3
flakes/common/nix_modules/timezone_chi.nix
Normal file
3
flakes/common/nix_modules/timezone_chi.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
time.timeZone = "America/Chicago";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue