mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
34 lines
688 B
Nix
34 lines
688 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.glance = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
server.port = 5678;
|
||
|
pages = [{
|
||
|
name = "Home";
|
||
|
columns = [{
|
||
|
size = "full";
|
||
|
widgets = [
|
||
|
{ type = "calendar"; }
|
||
|
{
|
||
|
type = "weather";
|
||
|
location = "London, United Kingdom";
|
||
|
}
|
||
|
];
|
||
|
}];
|
||
|
}];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.glance = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
configFile=home-files/.config/glance/glance.yml
|
||
|
serviceFile=home-files/.config/systemd/user/glance.service
|
||
|
|
||
|
assertFileContent $configFile ${./glance-example-config.yml}
|
||
|
assertFileContent $serviceFile ${./glance.service}
|
||
|
'';
|
||
|
}
|