mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-09 10:31:06 +01:00
glance: add module
This commit is contained in:
parent
f50e2779ed
commit
7e68e55d2e
10 changed files with 167 additions and 0 deletions
33
tests/modules/services/glance/example-settings.nix
Normal file
33
tests/modules/services/glance/example-settings.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue