Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add high-level gsettings module #321438

Open
jtojnar opened this issue Jun 21, 2024 · 3 comments
Open

Add high-level gsettings module #321438

jtojnar opened this issue Jun 21, 2024 · 3 comments
Labels
6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: module (new) This needs a module to be created

Comments

@jtojnar
Copy link
Member

jtojnar commented Jun 21, 2024

Now that #54150 was implemented in #234615 thanks to @linsui, we can implement a high-level GSettings module as a replacement for extraGSettingsOverrides.

I imagine something like

programs.gsettings = {
  checkAgainst = [ pkgs.gsettings-desktop-schemas ];
  settings = {
    "org/gnome/desktop/background" = {
       primary-color = "#000000";
    };
  };
};

which would turn into something like

programs.dconf = {
  enable = true;
  profiles.user.databases = [
    {
      settings = {
        "org/gnome/desktop/background" = {
           primary-color = "#000000";
        };
      };
    }
  ];
}

cc @NixOS/gnome @NixOS/pantheon

@jtojnar jtojnar added 6.topic: GNOME GNOME desktop environment and its underlying platform 9.needs: module (new) This needs a module to be created labels Jun 21, 2024
@jtojnar jtojnar added this to GNOME Jun 21, 2024
@Qyriad Qyriad added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jun 28, 2024
@jtojnar jtojnar moved this to To Do in GNOME Jul 30, 2024
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/changing-gdm-gsettings-declaratively/49579/6

@ahydronous
Copy link

ahydronous commented Oct 2, 2024

Instead of program.gsettings or program.dconf, wouldn't we rather move this into something like services.xserver.desktopManager.gnome with either .gsettings or .gsettingsOverride, or even .gsettings that would than have a bunch of attributes along with .gsettings.extraConfig for any deep config.

@jtojnar
Copy link
Member Author

jtojnar commented Oct 2, 2024

It is not really GNOME specific. And GSettings overrides are a specific thing (which we plan to actually remove) once this issue is resolved, so using that name would make it confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: module (new) This needs a module to be created
Projects
Status: To Do
Development

No branches or pull requests

4 participants