29 lines
558 B
Nix
29 lines
558 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.profiles.homepage;
|
|
in
|
|
{
|
|
|
|
options.my.profiles.homepage = with lib; {
|
|
enable = mkEnableOption "getHomepage.dev Dashboard";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.homepage-dashboard = {
|
|
enable = true;
|
|
allowedHosts = "jupiter.solar.internal:8082";
|
|
bookmarks = builtins.readFile ./bookmarks.yaml;
|
|
};
|
|
users.users.finn.packages = with pkgs; [
|
|
homepage-dashboard
|
|
];
|
|
programs.chromium.homepageLocation = "http://jupiter.solar.internal:8082";
|
|
|
|
};
|
|
}
|