-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
default.nix
111 lines (106 loc) · 2.75 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
105
106
107
108
109
110
111
{
config,
isInstall,
lib,
pkgs,
...
}:
{
imports = [ ./greetd.nix ];
environment = {
# Enable HEIC image previews in Nautilus
pathsToLink = [ "share/thumbnailers" ];
sessionVariables = {
# Workaround GTK4 bug:
# - https://gitlab.gnome.org/GNOME/gtk/-/issues/7022
# - https://github.com/hyprwm/Hyprland/issues/7854
GDK_DISABLE = "vulkan";
# Make sure the cursor size is the same in all environments
HYPRCURSOR_SIZE = 32;
HYPRCURSOR_THEME = "catppuccin-mocha-blue-cursors";
NIXOS_OZONE_WL = 1;
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;
};
systemPackages =
with pkgs;
lib.optionals isInstall [
hyprpicker
# Enable HEIC image previews in Nautilus
libheif
libheif.out
monitorets
gnome-font-viewer
nautilus # file manager
zenity
polkit_gnome
wdisplays # display configuration
wlr-randr
catppuccin-cursors
];
};
programs = {
dconf.profiles.user.databases = [
{
settings = with lib.gvariant; {
"org/gnome/desktop/interface" = {
clock-format = "24h";
color-scheme = "prefer-dark";
cursor-size = mkInt32 32;
cursor-theme = "catppuccin-mocha-blue-cursors";
document-font-name = "Work Sans 12";
font-name = "Work Sans 12";
gtk-theme = "catppuccin-mocha-blue-standard";
gtk-enable-primary-paste = true;
icon-theme = "Papirus-Dark";
monospace-font-name = "FiraCode Nerd Font Mono Medium 13";
text-scaling-factor = mkDouble 1.0;
};
"org/gnome/desktop/sound" = {
theme-name = "freedesktop";
};
"org/gtk/gtk4/Settings/FileChooser" = {
clock-format = "24h";
};
"org/gtk/Settings/FileChooser" = {
clock-format = "24h";
};
};
}
];
file-roller.enable = isInstall;
gnome-disks.enable = isInstall;
hyprland = {
enable = true;
systemd.setPath.enable = true;
};
nautilus-open-any-terminal = {
enable = true;
terminal = "alacritty";
};
nm-applet = lib.mkIf config.networking.networkmanager.enable {
enable = true;
indicator = true;
};
seahorse.enable = isInstall;
udevil.enable = true;
};
security = {
pam.services.hyprlock = { };
polkit = {
enable = true;
};
};
services = {
dbus = {
implementation = "broker";
packages = with pkgs; [ gcr ];
};
devmon.enable = true;
gnome = {
gnome-keyring.enable = isInstall;
sushi.enable = isInstall;
};
gvfs.enable = true;
udisks2.enable = true;
};
}