mb/google/brya/uldrenite: Add WWAN RW350R-GL power on sequence
[coreboot2.git] / util / liveiso / nixos / graphical.nix
blob77df3cbc131562e7a50e9ec7d7d1b8f193dfc863
1 # SPDX-License-Identifier: GPL-2.0-only
3 { pkgs, lib, ... }:
6         imports = [
7                 ./common.nix
8         ];
10         security.polkit = {
11                 enable = true;
12                 extraConfig = ''
13                         polkit.addRule(function(action, subject) {
14                                 if (subject.isInGroup("wheel")) {
15                                         return polkit.Result.YES;
16                                 }
17                         });
18                 '';
19         };
21         programs.dconf = {
22                 enable = true;
23                 profiles = {
24                         user.databases = [{
25                                 settings = {
26                                         "org/gnome/settings-daemon/plugins/power" = {
27                                                 sleep-inactive-ac-type = "nothing";
28                                         };
29                                         "org/gnome/desktop/interface" = {
30                                                 show-battery-percentage = true;
31                                                 clock-show-weekday = true;
32                                         };
33                                         "org/gnome/desktop/calendar" = {
34                                                 show-weekdate = true;
35                                         };
36                                 };
37                         }];
38                 };
39         };
41         services.xserver = {
42                 enable = true;
43                 displayManager = {
44                         gdm = {
45                                 enable = true;
46                                 autoSuspend = false;
47                         };
48                         autoLogin = {
49                                 enable = true;
50                                 user = "user";
51                         };
52                 };
53                 desktopManager.gnome.enable = true;
54         };
56         hardware.pulseaudio.enable = false;
57         services.pipewire = {
58                 enable = true;
59                 pulse.enable = true;
60                 alsa.enable = true;
61         };
63         users.users.user.extraGroups = [ "audio" "video" "input" ];
65         environment.systemPackages = with pkgs; [
66                 firefox
67                 gparted
68                 pavucontrol
69         ];
71         # Remove unnecessary stuff
72         services = {
73                 gnome = {
74                         evolution-data-server.enable = lib.mkForce false;
75                         gnome-online-accounts.enable = lib.mkForce false;
76                         gnome-online-miners.enable = lib.mkForce false;
77                         gnome-initial-setup.enable = lib.mkForce false;
78                         gnome-browser-connector.enable = lib.mkForce false;
79                 };
80                 telepathy.enable = lib.mkForce false;
81                 dleyna-renderer.enable = lib.mkForce false;
82                 dleyna-server.enable = lib.mkForce false;
83         };
85         programs.geary.enable = lib.mkForce false;
87         environment.gnome.excludePackages = with pkgs; [
88                 gnome.gnome-weather
89                 gnome.epiphany
90                 gnome.gnome-contacts
91                 gnome-photos
92                 gnome.gnome-music
93                 yelp
94         ];