nixos/gnome-initial-setup: init

It tries to start during the GDM session even
with the conflicts.
This commit is contained in:
worldofpeace 2019-09-19 15:12:18 -04:00 committed by Jan Tojnar
parent f8682c31dd
commit f9b44934bc
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
3 changed files with 59 additions and 1 deletions

View file

@ -299,10 +299,11 @@
./services/desktops/gnome3/chrome-gnome-shell.nix
./services/desktops/gnome3/evolution-data-server.nix
./services/desktops/gnome3/glib-networking.nix
./services/desktops/gnome3/gnome-initial-setup.nix
./services/desktops/gnome3/gnome-keyring.nix
./services/desktops/gnome3/gnome-online-accounts.nix
./services/desktops/gnome3/gnome-remote-desktop.nix
./services/desktops/gnome3/gnome-online-miners.nix
./services/desktops/gnome3/gnome-remote-desktop.nix
./services/desktops/gnome3/gnome-settings-daemon.nix
./services/desktops/gnome3/gnome-user-share.nix
./services/desktops/gnome3/rygel.nix

View file

@ -0,0 +1,56 @@
# GNOME Initial Setup.
{ config, pkgs, lib, ... }:
with lib;
{
###### interface
options = {
services.gnome3.gnome-initial-setup = {
enable = mkEnableOption "GNOME Initial Setup, a Simple, easy, and safe way to prepare a new system";
};
};
###### implementation
config = mkIf config.services.gnome3.gnome-initial-setup.enable {
environment.systemPackages = [
pkgs.gnome3.gnome-initial-setup
];
systemd.packages = [
pkgs.gnome3.gnome-initial-setup
];
systemd.user.targets."gnome-session".wants = [
"gnome-initial-setup-copy-worker.service"
"gnome-initial-setup-first-login.service"
"gnome-welcome-tour.service"
];
systemd.user.targets."gnome-session@gnome-initial-setup".wants = [
"gnome-initial-setup.service"
];
# Setup conflicts
systemd.user.services."gnome-initial-setup-copy-worker".conflicts = [
"gnome-session@gnome-login.target"
];
systemd.user.services."gnome-initial-setup-first-login".conflicts = [
"gnome-session@gnome-login.target"
"gnome-session@gnome-initial-setup.target"
];
};
}

View file

@ -229,6 +229,7 @@ in
services.colord.enable = mkDefault true;
services.gnome3.chrome-gnome-shell.enable = mkDefault true;
services.gnome3.glib-networking.enable = true;
services.gnome3.gnome-initial-setup.enable = mkDefault true;
services.gnome3.gnome-remote-desktop.enable = mkDefault true;
services.gnome3.gnome-settings-daemon.enable = true;
services.gnome3.gnome-user-share.enable = mkDefault true;