IssueRaiser

feature: add an option `home.file.<name>.mode` that allows copy instead of linking and permission setting.

### Description This option should default to `"symlink"`, which instruct home-manager to create a symbolic link at the specified location to be compatible to the current behavior. When set to an octal-mode, e. g. `"0600"`, the content will be copied from the source to the specified location and `chmod` to the value given. This issue generalize the goal of #1145, while adding the ability to set permissions and to align with the NixOS option `environment.etc.<name>.mode`. Inspired by https://github.com/nix-community/home-manager/pull/1145#issuecomment-1175795593

Posted by ShamrockLee on Jul 13, 2022, 5:47 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

github (Software)

feature: add an option `home.file.<name>.mode` that allows copy instead of linking and permission setting.

ShamrockLeeJul 13, 2022, 5:47 PM

### Description This option should default to `"symlink"`, which instruct home-manager to create a symbolic link at the specified location to be compatible to the current behavior. When set to an octal-mode, e. g. `"0600"`, the content will be copied from the source to the specified location and `chmod` to the value given. This issue generalize the goal of #1145, while adding the ability to set permissions and to align with the NixOS option `environment.etc.<name>.mode`. Inspired by https://github.com/nix-community/home-manager/pull/1145#issuecomment-1175795593

Comments (0)

No comments yet. Start the discussion.

Comment on this issue