-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
104 lines (93 loc) · 2.18 KB
/
default.nix
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
99
100
101
102
103
104
{
config,
lib,
pkgs,
...
}: let
cfg = config.vyxos.desktop;
inherit (config.vyxos) vyxUser;
inherit (lib) mkIf mkEnableOption;
in {
imports = [
./gui.nix
./mpd.nix
./firefox.nix
];
options.vyxos.desktop = {
enable = mkEnableOption "VyxOS desktop";
};
config = mkIf (cfg.enable) {
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "et_EE.UTF-8";
LC_IDENTIFICATION = "et_EE.UTF-8";
LC_MEASUREMENT = "et_EE.UTF-8";
LC_MONETARY = "et_EE.UTF-8";
LC_NAME = "et_EE.UTF-8";
LC_NUMERIC = "et_EE.UTF-8";
LC_PAPER = "et_EE.UTF-8";
LC_TELEPHONE = "et_EE.UTF-8";
LC_TIME = "et_EE.UTF-8";
};
users.users.${vyxUser}.extraGroups = ["dialout"];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"1password-gui"
"1password-cli"
"1password"
"discord"
"obsidian"
];
programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = [vyxUser];
};
};
fonts.packages = with pkgs; [
(iosevka.override {
set = "TermSlab";
privateBuildPlan = {
family = "Iosevka Term Slab";
spacing = "term";
serifs = "slab";
noCvSs = false;
exportGlyphNames = true;
widths = {
Condensed = {
shape = 500;
menu = 3;
css = "condensed";
};
Normal = {
shape = 600;
menu = 5;
css = "normal";
};
};
};
})
];
home-manager.users.${vyxUser} = {
home.packages = with pkgs; [
discord
dosbox-x
obsidian
element-desktop
];
home.file = {
".config/dosbox-x/dosbox-x-2024.07.01.conf".source = ./dosbox-x.conf;
};
programs.kitty = {
enable = true;
themeFile = "Catppuccin-Mocha";
font.name = "Iosevka Term Slab";
settings.disable_ligatures = "cursor";
};
programs.ncmpcpp = {
enable = true;
};
};
};
}