-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.nix
More file actions
98 lines (98 loc) · 2.4 KB
/
settings.nix
File metadata and controls
98 lines (98 loc) · 2.4 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
lib,
config,
...
}: let
cfg = config.settings;
in {
options.settings = {
username = lib.mkOption {
type = lib.types.str;
default = "elotoja";
};
email = lib.mkOption {
type = lib.types.str;
default = "elotoja@protonmail.com";
};
homeDirectory = lib.mkOption {
type = lib.types.path;
default = "/home/${cfg.username}";
};
dotfilesDirectory = lib.mkOption {
type = lib.types.path;
default = "${cfg.homeDirectory}/Projects/dotfiles/main";
};
uid = lib.mkOption {
type = lib.types.int;
default = 1000;
};
git.userName = lib.mkOption {
type = lib.types.str;
default = "EloToJaa";
};
git.userEmail = lib.mkOption {
type = lib.types.str;
default = cfg.email;
};
catppuccin.flavor = lib.mkOption {
type = lib.types.str;
default = "mocha";
};
catppuccin.accent = lib.mkOption {
type = lib.types.str;
default = "blue";
};
terminal = lib.mkOption {
type = lib.types.str;
default = "ghostty"; # wezterm/ghostty/kitty
};
discord = lib.mkOption {
type = lib.types.str;
default = "vesktop"; # discord/vesktop
};
timezone = lib.mkOption {
type = lib.types.str;
default = "Europe/Warsaw";
};
locale = lib.mkOption {
type = lib.types.str;
default = "en_GB.UTF-8";
};
keyboardLayout = lib.mkOption {
type = lib.types.str;
default = "pl,pl";
};
stateVersion = lib.mkOption {
type = lib.types.str;
default = "25.11";
};
dns = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = ["192.168.0.32" "9.9.9.9" "149.112.112.112"];
};
nfs.local = lib.mkOption {
type = lib.types.str;
default = "192.168.0.41";
};
nfs.remote = lib.mkOption {
type = lib.types.str;
default = "truenas.eagle-perch.ts.net";
};
ssh.keys.user = lib.mkOption {
type = lib.types.str;
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMtWaehMf7X23uUZDY5J4fG4/exqj5jWQVaLLXloaO/g elotoja@protonmail.com";
};
atuin = lib.mkOption {
type = lib.types.str;
default = "https://atuin.server.elotoja.com";
};
isLaptop = lib.mkOption {
type = lib.types.bool;
default = false;
};
isServer = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
}