dotfiles/.files/rofi-dev-configs/work-laptop.dhall

112 lines
3.0 KiB
Plaintext
Raw Normal View History

2023-09-30 01:11:23 -04:00
let C = ../rofi-extras/dhall/rofi-dev.dhall
2024-08-09 16:18:26 -04:00
let cryptdir = "${env:HOME as Text}/Documents/.crypt"
2023-09-30 01:11:23 -04:00
let sshKey = "ssh nanobarbie"
let gpgKey = "gpg nanobarbie"
let bwConfig =
2024-08-09 16:18:26 -04:00
\(k : Text) -> C.PasswordConfig.PwdBW C.BitwardenConfig::{ bwKey = k }
2023-09-30 01:11:23 -04:00
let sshData =
2024-08-09 16:18:26 -04:00
\(r : Text) -> C.DataConfig.SSHFSConfig C.SSHFSData::{ sshfsRemote = r }
2023-09-30 01:11:23 -04:00
2024-08-09 16:18:26 -04:00
let sshfsEntry =
2023-09-30 01:11:23 -04:00
\(l : Text) ->
2024-08-09 16:18:26 -04:00
\(m : Text) ->
2023-09-30 01:11:23 -04:00
\(r : Text) ->
2024-08-09 16:18:26 -04:00
{ tKey = l
, tVal =
{ tcParent =
{ deviceMount = { mpPath = m, mpLabel = Some l }
, deviceData = sshData r
}
, tcChildren = [ "ssh" ]
}
2023-09-30 01:11:23 -04:00
}
2024-08-09 16:18:26 -04:00
: C.TreeMap
2023-09-30 01:11:23 -04:00
let crypt = \(b : Text) -> "${cryptdir}/${b}"
let vcName = \(n : Text) -> "Veracrypt (${n})"
2024-08-09 16:18:26 -04:00
let vcryptEntry =
\(l : Text) ->
2023-09-30 01:11:23 -04:00
\(m : Text) ->
\(v : Text) ->
\(k : Text) ->
2024-08-09 16:18:26 -04:00
{ tKey = l
, tVal = C.TreeConfig::{
, tcParent =
{ deviceMount = { mpPath = m, mpLabel = Some l }
, deviceData =
C.DataConfig.VeracryptConfig
{ vcVolume = v, vcPassword = Some (bwConfig (vcName k)) }
}
}
2023-09-30 01:11:23 -04:00
}
2024-08-09 16:18:26 -04:00
: C.TreeMap
2023-09-30 01:11:23 -04:00
2024-08-09 16:18:26 -04:00
let cifsEntry =
\(l : Text) ->
\(m : Text) ->
\(r : Text) ->
\(o : Optional C.CIFSOpts.Type) ->
{ tKey = l
, tVal = C.TreeConfig::{
, tcParent =
{ deviceMount = { mpPath = m, mpLabel = Some l }
, deviceData =
C.DataConfig.CIFSConfig
{ cifsRemote = r
, cifsSudo = True
, cifsPassword = Some
(C.PasswordConfig.PwdPr C.PromptConfig::{=})
, cifsOpts = o
}
}
}
2024-01-26 10:12:04 -05:00
}
2023-09-30 01:11:23 -04:00
2024-08-09 16:18:26 -04:00
let devs =
[ vcryptEntry
"ssh"
"${env:HOME as Text}/.ssh"
(crypt "ssh-config-nanobarbie")
sshKey
, vcryptEntry
"gnupg"
"${env:GNUPGHOME as Text}"
(crypt "gpg-config")
gpgKey
, vcryptEntry "pii" "pii" (crypt "pii") "work vault"
, sshfsEntry "nisaba_wrk" "nisaba_wrk" "nisaba:/wrk/njd2"
, sshfsEntry "nist_dvl" "nist_dvl" "nist-workstation:/mnt/data/Dvl"
, cifsEntry
"flowILS"
"flowILS"
2024-08-12 09:56:11 -04:00
"//elwood.nist.gov/63_MML/63internal/Flow ILS Share"
2024-08-09 16:18:26 -04:00
( Some
C.CIFSOpts::{
, cifsoptsUsername = Some "njd2"
, cifsoptsUID = Some 69444
, cifsoptsGID = Some 36679
}
)
2024-08-12 09:56:11 -04:00
, cifsEntry
"flowBBD"
"flowBBD"
"//Resdata-smb.nist.gov/Div-Shares/644-BBD/644-Flow-Cytometry"
( Some
C.CIFSOpts::{
, cifsoptsUsername = Some "njd2"
, cifsoptsUID = Some 69444
, cifsoptsGID = Some 36679
, cifsoptsDomain = Some "NIST"
}
)
2023-09-30 01:11:23 -04:00
]
2024-08-09 16:18:26 -04:00
in C.StaticConfig::{ scDevices = devs }