nixphone stuff
This commit is contained in:
parent
0348ef1e6a
commit
f0fca1bad4
1 changed files with 433 additions and 236 deletions
56
modules/mobile/gnome-mobile.nix
Normal file
56
modules/mobile/gnome-mobile.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# GNOME Shell mobile. GDM and the GNOME services/apps are in modules/graphical/gnome.
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
nixpkgs.overlays = [ inputs.gnome-mobile.overlays.default ];
|
||||
|
||||
services = {
|
||||
desktopManager.gnome = {
|
||||
enable = true;
|
||||
|
||||
# One app per workspace
|
||||
extraGSettingsOverrides = ''
|
||||
[org.gnome.mutter]
|
||||
dynamic-workspaces=true
|
||||
'';
|
||||
extraGSettingsOverridePackages = [ pkgs.mutter ];
|
||||
};
|
||||
|
||||
logind.settings.Login = {
|
||||
HandlePowerKey = "ignore";
|
||||
HandlePowerKeyLongPress = "poweroff";
|
||||
};
|
||||
};
|
||||
|
||||
# GNOME talks to IBus over D-Bus, with these set the on-screen keyboard won't show up.
|
||||
environment.extraInit = ''
|
||||
unset GTK_IM_MODULE QT_IM_MODULE XMODIFIERS
|
||||
'';
|
||||
|
||||
users.users.quadradical.maid.gsettings.settings.org.gnome = {
|
||||
desktop = {
|
||||
search-providers.sort-order = [
|
||||
"org.gnome.Contacts.desktop"
|
||||
"org.gnome.Documents.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
];
|
||||
|
||||
background = rec {
|
||||
picture-uri = "file://${../../background.jpg}";
|
||||
picture-uri-dark = picture-uri;
|
||||
};
|
||||
|
||||
lockdown.user-administration-disabled = true;
|
||||
};
|
||||
|
||||
system.location.enabled = true;
|
||||
|
||||
shell = {
|
||||
remember-mount-password = true;
|
||||
favorite-apps = [
|
||||
"librewolf.desktop"
|
||||
"org.gnome.Geary.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue