llakala / nixos

My NixOS config
3 stars 1 forks source link

Fix any dconf settings modified imperatively #45

Open llakala opened 3 weeks ago

llakala commented 3 weeks ago

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 commented 3 weeks ago

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

llakala commented 2 weeks ago

"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 commented 2 weeks ago
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.