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

Fix any dconf settings modified imperatively #45

Open
llakala opened this issue Sep 20, 2024 · 3 comments
Open

Fix any dconf settings modified imperatively #45

llakala opened this issue Sep 20, 2024 · 3 comments
Labels
bug An implementation isn't working as indended major Introducing something new

Comments

@llakala
Copy link
Owner

llakala commented Sep 20, 2024

Not sure if this is possible, but would certainly be nice. Let's say we set favorite-apps to this:

 favorite-apps = # Taskbar apps
      [
        "firefox.desktop"
        "org.gnome.Nautilus.desktop"
        "kitty.desktop"
        "code.desktop"
        "obsidian.desktop"
       ];

And then an idiot user comes and changes that to this:

 favorite-apps = # Taskbar apps
      [
        "firefox.desktop"
        "org.gnome.Nautilus.desktop"
        "kitty.desktop"
        "code.desktop"
        "obsidian.desktop"
        "STUPIDAPP.desktop"
       ];

Ideally, we'd be able to detect that change and undo it on rebuild. Or, force any settings we set to be locked.

@llakala llakala added bug An implementation isn't working as indended major Introducing something new labels Sep 20, 2024
@llakala
Copy link
Owner Author

llakala commented Sep 20, 2024

"org/gnome/shell/allow-extension-installation" = false; seems to fix this for extensions, which is very helpful. It might break other functionality, though.

@llakala
Copy link
Owner Author

llakala commented Sep 25, 2024

"org/gnome/shell/allow-extension-installation" = false; seems to fix this for extensions, which is very helpful. It might break other functionality, though.

Didn't work, it seems to automatically disable extensions on first install.

@llakala
Copy link
Owner Author

llakala commented Sep 25, 2024

programs.dconf.profiles.user.databases = lib.singleton
{
    lockAll = true;
};

This seems to do exactly what I want, but it's exclusive to the nixos module for dconf. Not sure if I could set it and not cause conflicts with home-manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An implementation isn't working as indended major Introducing something new
Projects
None yet
Development

No branches or pull requests

1 participant