0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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

@ -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"
];
};
}