Adding files to users home directory configuration.nix

#1

I have my .vimrc file in a gist and would like have it in my users home directory.

How do I specify files to add to the user home directory in configuration.nix

0 Likes

#2

Have a look at home manager, you can use home.file.<name?> for that.
It behaves similar to the environment.etc option.

Alternatively there is the package vim_configurable.

Oh I overread that it is a gist, though that doesn’t change much.
Just fetch the file with either fetchurl or fetchzip.

1 Like

#3

Good suggestions. Thanks!

0 Likes