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

nixos configuration: home-manager: two-way sync with dotfiles #76

Open
milahu opened this issue Sep 12, 2024 · 0 comments
Open

nixos configuration: home-manager: two-way sync with dotfiles #76

milahu opened this issue Sep 12, 2024 · 0 comments

Comments

@milahu
Copy link
Owner

milahu commented Sep 12, 2024

when i change dotfiles, these changes should be synced back to my home-manager config
so i can use all the apps' default graphical config editors to modify my nixos config

example

plasma6 > panel > panel configuration > disable floating

--- a/.config/plasmashellrc
+++ b/.config/plasmashellrc
@@ -9,7 +9,7 @@
 Number of Actions=0
 
 [PlasmaViews][Panel 2]
-floating=1
+floating=0
 
 [PlasmaViews][Panel 2][Defaults]
 thickness=40

this change from default to non-default config should add
something like this to my home-manager config

{
  home-config."user" = {
    plasma6 = {
      # /home/user/.config/plasmashellrc
      plasmashellrc = {
        PlasmaViews = {
          # [PlasmaViews][Panel 2]
          "Panel 2" = {
            # floating=0
            floating = 0;
          };
        };
      };
    };
  };
}

after nixos-rebuild switch the generated file /home/user/.config/plasmashellrc
should be writable by the user, so he can continue modifying the config

related

NixOS configuration editors

keywords

  • graphical nixos configuration editor
  • graphical nixos config editor
  • nixos config GUI
  • nixos GUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant