forked from iwanders/nixos-surface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule-desktop.nix
58 lines (45 loc) · 1.62 KB
/
module-desktop.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
{ config, pkgs, ... }: {
# https://github.com/fthx/no-overview/tree/main
# is also helpful to ensure we end up on a desktop instead of the launcher.
# Forked to https://github.com/iwanders/gnome-no-overview-extension
# Currently installed through the gnome extension system.
imports = [ ./gnome-osk.nix ];
options = { };
config = {
# Surface related stuff.
services.iptsd.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
# https://github.com/NixOS/nixpkgs/blob/4ecab3273592f27479a583fb6d975d4aba3486fe/nixos/modules/services/x11/desktop-managers/gnome.nix#L459
# Configure keymap in X11
# services.xserver.xkbOptions = "eurosign:e,caps:escape";
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.autoSuspend = false;
# This block is here to ensure we get GDM with the custom on screen keyboard extension
# in the settings I want.
programs.dconf.profiles.gdm.databases = [
{
#lockAll = false;
settings."org/gnome/shell/extensions/enhancedosk" = {
show-statusbar-icon = true;
locked = true;
};
}
{
#lockAll = false;
settings."org/gnome/shell" = {
enabled-extensions = [ "iwanders-gnome-enhanced-osk-extension" ];
};
}
{
#lockAll = false;
settings."org/gnome/desktop/a11y/applications" = {
screen-keyboard-enabled = true;
};
}
];
services.xserver.desktopManager.gnome.enable = true;
services.gnome.core-utilities.enable = false;
};
}