nix-config/nixos/_mixins/services/homepage.nix
Gregory Burd 86706b1fc7 wimpy-ified
inspired by wimpysworld nix-config
2023-09-25 14:05:07 -04:00

40 lines
963 B
Nix

{ inputs, pkgs, ... }:
let
homepage-bookmarks = pkgs.writeTextFile {
name = "bookmarks.yaml";
executable = false;
destination = "/var/lib/private/homepage-dashboard/bookmarks.yaml";
text = ''
---
# For configuration options and examples, please see:
# https://gethomepage.dev/en/configs/bookmarks
- Developer:
- Github:
- abbr: GH
href: https://github.com/
- Social:
- Twitter:
- abbr: X
href: https://twitter.com/
- Entertainment:
- YouTube:
- abbr: YT
href: https://youtube.com/
'';
};
in
{
imports = [ "${inputs.nixpkgs-unstable}/nixos/modules/services/misc/homepage-dashboard.nix" ];
services.homepage-dashboard = {
enable = true;
package = pkgs.unstable.homepage-dashboard;
openFirewall = true;
};
environment.systemPackages = [ homepage-bookmarks ];
}