Skip to content

Q: How to correctly implement a home-manager? #212

Open
@Kreyren

Description

I am struggling implementing flake-parts to work as a part of nixosSystem declaration can you help? So that on system rebuild it also deploys the home-manager configuration for the user, so far i figured out this:

image

https://github.com/Kreyren/nixos-config/pull/1/files#diff-5edef9e1a197551f68e55e21f7a097cd12ec03b7f6c4ab904b01ec1de4b72330R30-R55

Which kinda defeats the purpose of flake-parts as i want to get rid of hard-coded paths so that i can just ideally do self.homeConfigurations."kreyren@sinnenfreude" in modules and expect it to deploy the configuration while still being able to do e.g. nixos-rebuild --flake 'github:kreyren/nixos-config#homeConfigurations.\"kreyren@sinnenfreude\"" and have the home-manager deployed independently from the nixosSystem

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