Skip to content

home.file.<name>.source cannot begin with a dot #4

Description

@dermetfan

To reproduce:

# ~/.nixpkgs/home.nix
home.file.test.source = ./.test;
❯ home-manager build
error: while evaluating the attribute ‘installPhase’ of the derivation ‘home-manager-generation’ at /home/dermetfan/.nixpkgs/home-manager/modules/home-environment.nix:333:11:
while evaluating the attribute ‘installPhase’ of the derivation ‘home-manager-files’ at /home/dermetfan/.nixpkgs/home-manager/modules/home-environment.nix:319:11:
while evaluating anonymous function at /nix/store/7k3jyxd0y4c6hnl4ixs1yz1d1pvplgf1-nixos-17.03pre101636.183eeb3/nixos/lib/attrsets.nix:224:10, called from undefined position:
while evaluating anonymous function at /home/dermetfan/.nixpkgs/home-manager/modules/home-environment.nix:326:37, called from /nix/store/7k3jyxd0y4c6hnl4ixs1yz1d1pvplgf1-nixos-17.03pre101636.183eeb3/nixos/lib/attrsets.nix:224:16:
illegal name: ‘.test’

The evaluation error occurs when ${value.source} is accessed.

My workaround for now is home.file.".<name>" = ./dotfiles/<name>;.

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