home-manager/tests/modules/files/executable.nix
Robert Helgesson 4bed99c71c
files: allow a wider range of source file names
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`.

(cherry picked from commit 7c04351a57)
2019-02-11 01:21:04 +01:00

18 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;
'';
};
}