ADD crypt dir for work laptop

This commit is contained in:
Nathan Dwarshuis 2024-01-26 10:12:04 -05:00
parent 664dc665ba
commit f6606faf36
1 changed files with 17 additions and 15 deletions

View File

@ -39,20 +39,14 @@ let vcryptTree =
\(l : Optional Text) -> \(l : Optional Text) ->
\(v : Text) -> \(v : Text) ->
\(k : Text) -> \(k : Text) ->
{ tcParent = { tcParent =
{ deviceMount = { mpPath = m, mpLabel = l } : C.MountConfig { deviceMount = { mpPath = m, mpLabel = l }
, deviceData = , deviceData =
C.DataConfig.VeracryptConfig C.DataConfig.VeracryptConfig
( { vcVolume = crypt v { vcVolume = v, vcPassword = Some (bwConfig (vcName k)) }
, vcPassword = Some (bwConfig (vcName k))
}
: C.VeracryptData
)
}
: C.DeviceConfig
, tcChildren = [] : List Text
} }
: C.TreeConfig , tcChildren = [] : List Text
}
let defaultDevs = let defaultDevs =
[ { tKey = "ssh" [ { tKey = "ssh"
@ -60,7 +54,7 @@ let defaultDevs =
vcryptTree vcryptTree
"${env:HOME as Text}/.ssh" "${env:HOME as Text}/.ssh"
(Some "ssh") (Some "ssh")
"ssh-config" (crypt "ssh-config")
sshKey sshKey
} }
, { tKey = "gnupg" , { tKey = "gnupg"
@ -68,9 +62,17 @@ let defaultDevs =
vcryptTree vcryptTree
"${env:GNUPGHOME as Text}" "${env:GNUPGHOME as Text}"
(None Text) (None Text)
"gpg-config" (crypt "gpg-config")
gpgKey gpgKey
} }
, { tKey = "pii"
, tVal =
vcryptTree
"pii"
(None Text)
"${env:HOME as Text}/Documents/.crypt"
"work vault"
}
] ]
let otherDevs = let otherDevs =