-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
72 lines (64 loc) · 1.45 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
{
config,
lib,
pkgs,
...
}: let
cfg = config.vyxos.desktop;
inherit (config.vyxos) vyxUser;
inherit (lib) mkIf mkEnableOption;
in {
imports = [
./gui.nix
./mpd.nix
./firefox.nix
./iosevka.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];
};
};
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.ncmpcpp = {
enable = true;
};
};
};
}