Skip to content

files with type = "copy" get clobbered despite clobber = false #25

@fred21O4

Description

@fred21O4

Basically the title

In my case I also set permissions = "644" to allow the file to be edited, however the clobber occurs without permissions being set.

Reproducible with the following config

hjem.linker = pkgs.smfh;
hjem.users.<name>.files = {
  "example" = {
    text = "Example text";
    clobber = false;
    type = "copy";
    permissions = "644";
  };
};

rebuild, edit the file, rebuild again, observe its content being reset to Example text

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