2024-01-28 16:51:53 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, config
|
|
|
|
, ... }: with lib; let
|
|
|
|
cfg = config.home.gnome;
|
|
|
|
in mkIf cfg.enable {
|
2024-07-29 15:40:59 +08:00
|
|
|
global.flatpak.enable = mkDefault true;
|
2024-01-28 16:51:53 +08:00
|
|
|
programs.regreet.enable = false;
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.startx.enable = false;
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
2024-01-29 00:20:21 +08:00
|
|
|
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
2024-07-29 15:40:59 +08:00
|
|
|
xdg.portal.configPackages = with pkgs; [ gnome.gnome-session ];
|
2024-07-29 14:19:20 +08:00
|
|
|
hardware.pulseaudio.enable = false;
|
2024-01-28 16:51:53 +08:00
|
|
|
|
2024-07-29 14:19:20 +08:00
|
|
|
users.home.persist.directories = [
|
|
|
|
".config/dconf"
|
|
|
|
];
|
2024-01-28 16:51:53 +08:00
|
|
|
environment.persistence."/nix/persist/fhs".directories = [ ];
|
|
|
|
}
|