mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00: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`.
17 lines
262 B
Nix
17 lines
262 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.file."executable" = {
|
|
text = "";
|
|
executable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/executable
|
|
assertFileIsExecutable home-files/executable;
|
|
'';
|
|
};
|
|
}
|