dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/desktop/_base.nix (856B)
1# Shared desktop configuration
2_: {
3 nixos = _: {
4 gui.enable = true;
5
6 # Utilities
7 services = {
8 gvfs.enable = true;
9 gnome.gnome-keyring.enable = true;
10 };
11
12 programs = {
13 xwayland.enable = true;
14 seahorse.enable = true;
15 };
16
17 # Environment Setup
18 environment.sessionVariables = {
19 "NIXOS_OZONE_WL" = "1";
20 "QT_QPA_PLATFORM" = "wayland;xcb";
21 "MOZ_ENABLE_WAYLAND" = "1";
22 "CLUTTER_BACKEND" = "wayland";
23 };
24
25 xdg.portal = {
26 enable = true;
27 xdgOpenUsePortal = true;
28 wlr.enable = true;
29 };
30 };
31
32 home = _: {
33 services = {
34 poweralertd.enable = true; # Power Alerts
35 mpris-proxy.enable = true; # BT Controls
36 };
37
38 home.persist.directories = [
39 ".config/autostart"
40 ".local/share/gvfs-metadata"
41 ".cache/thumbnails"
42 ];
43 };
44}