mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-13 20:41:07 +01:00
Adds tests to verify that the configuration files and services were created sucessfully, even in a no configuration case Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
30 lines
592 B
Nix
30 lines
592 B
Nix
{
|
|
services.hyprsunset = {
|
|
enable = true;
|
|
extraArgs = [ "--identity" ];
|
|
|
|
settings = {
|
|
max-gamma = 150;
|
|
|
|
profile = [
|
|
{
|
|
time = "7:30";
|
|
identity = true;
|
|
}
|
|
{
|
|
time = "21:00";
|
|
temperature = 5000;
|
|
gamma = 0.8;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
config=home-files/.config/hypr/hyprsunset.conf
|
|
mainService=home-files/.config/systemd/user/hyprsunset.service
|
|
assertFileExists $config
|
|
assertFileExists $mainService
|
|
assertFileContent $config ${./hyprsunset.conf}
|
|
'';
|
|
}
|