
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`.
17 lines
289 B
Nix
17 lines
289 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.file.".hidden".source = ./.hidden;
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.hidden;
|
|
assertFileContent home-files/.hidden ${
|
|
builtins.path { path = ./.hidden; name = "expected"; }
|
|
}
|
|
'';
|
|
};
|
|
}
|