nixcfg/modules/nixos/apps/looking-glass-client/default.nix

24 lines
577 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.apps.looking-glass-client;
user = config.plusultra.user;
in
{
options.plusultra.apps.looking-glass-client = with types; {
enable =
mkBoolOpt false "Whether or not to enable the Looking Glass client.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ looking-glass-client ];
environment.etc."looking-glass-client.ini" = {
user = "+${toString config.users.users.${user.name}.uid}";
source = ./client.ini;
};
};
}