mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 00:09:48 +01:00
7c04351a57
In particular support source files whose name start with `.` or contain characters not allowed in the nix store, such as spaces. Also add some test cases for `home.file`.
20 lines
434 B
Nix
20 lines
434 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.file."source with spaces!".source = ./. + "/source with spaces!";
|
|
|
|
nmt.script = ''
|
|
assertFileExists 'home-files/source with spaces!';
|
|
assertFileContent 'home-files/source with spaces!' \
|
|
${
|
|
builtins.path {
|
|
path = ./. + "/source with spaces!";
|
|
name = "source-with-spaces-expected";
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
}
|