1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use logix_type::{LogixType, Map};

#[derive(Debug, LogixType)]
pub enum Shell {
    Bash,
}

#[derive(Debug, LogixType)]
pub enum Editor {
    Helix,
}

#[derive(Debug, LogixType)]
pub enum SshAgent {
    SystemD,
}

#[derive(Debug, LogixType)]
pub enum Ssh {
    OpenSSH { agent: SshAgent, keys: Map<String> },
}

#[derive(Debug, LogixType)]
pub struct UserProfile {
    pub username: String,
    pub name: String,
    pub email: String,
    pub shell: Option<Shell>,
    pub editor: Option<Editor>,
    pub ssh: Option<Ssh>,
}

#[derive(Debug, LogixType)]
pub struct Logix {
    pub home: UserProfile,
}