Skip to content

Feature: Ability to define partial configurations #128

@Doc-Steve

Description

@Doc-Steve

Hi there,

When using all the existing dot-file managers, I’m curious if Nix could offer a unique feature that would make it significantly superior to traditional dot-management: defining partial configurations. Currently, the only option is to either set all configurations for a program in the Nix code or leave them completely unmanaged. There‘s no middle ground.

Let me elaborate on this:

I often find myself wanting to define only a subset of the possible configuration settings for a program within my NixOS infrastructure code. I want to leave other settings untouched or allow users to modify them. It would be incredibly helpful if I could define settings for a JSON, YAML, or INI configuration file, and NixOS would automatically insert or replace these settings in the existing dot files.

I’m wondering if such a feature is even feasible and if this is something that could be done with hjem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions