Skip to content

Add NixOS-only support (dual environment.etc + xdg.configFile) #2

Description

@dominicnunez

Summary

The current nixos module only supports home-manager (uses xdg.configFile), which means it won't work on bare NixOS setups without home-manager.

Proposal

Add dual support so the module works with or without home-manager:

# For NixOS (no home-manager required)
environment.etc."btca/btca.config.jsonc".text = builtins.toJSON cfg.settings;

# For home-manager users
xdg.configFile."btca/btca.config.jsonc".text = builtins.toJSON cfg.settings;

Use case

This would allow btca-nix to work in NixOS configurations that don't use home-manager, while still supporting existing home-manager users.

Alternative

A simpler approach would be to just use environment.etc (NixOS-level) and let users symlink to ~/.config/btca/ if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions