Skip to content

Commit

Permalink
fixup! nixos/gnome3: add environment.gnome3.enableExtensions option
Browse files Browse the repository at this point in the history
Try to add add a lock file, to prevent users from modifying / overriding
the system (default) settings. However, it doesn't work.
  • Loading branch information
bjornfor committed May 24, 2020
1 parent 06c75f4 commit 966f3e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,15 @@ in
enabled-extensions=${extensionUuids}
'';

# Add a lock file, it prevents users from modifying / overriding the
# system (default) settings.
# FIXME: It doesn't work! Users can still change these settings.
# Ref. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/custom-default-values-system-settings
environment.etc."dconf/db/local.d/locks/00-org-gnome-shell-enabled-extensions".text = ''
# Prevent this key from being overridden by users (enforcing declarative style)
/org/gnome/shell/enabled-extensions
'';

# Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/blob/gnome-3-36/elements/core/meta-gnome-core-shell.bst
environment.systemPackages = with pkgs.gnome3; [
adwaita-icon-theme
Expand Down

0 comments on commit 966f3e2

Please sign in to comment.