1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 08:09:45 +01:00
home-manager/modules/services/plan9port.nix

36 lines
874 B
Nix
Raw Normal View History

2020-07-28 23:16:31 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.plan9port;
in {
meta.maintainers = [ maintainers.ehmry ];
options.services.plan9port = {
fontsrv.enable =
mkEnableOption "the Plan 9 file system access to host fonts";
plumber.enable =
mkEnableOption "the Plan 9 file system for interprocess messaging";
};
config = {
systemd.user.services.fontsrv = mkIf cfg.fontsrv.enable {
Unit.Description = "the Plan 9 file system access to host fonts";
Install.WantedBy = [ "default.target" ];
Service.ExecStart = "${pkgs.plan9port}/bin/9 fontsrv";
};
systemd.user.services.plumber = mkIf cfg.plumber.enable {
Unit.Description = "file system for interprocess messaging";
Install.WantedBy = [ "default.target" ];
Service.ExecStart = "${pkgs.plan9port}/bin/9 plumber -f";
};
};
}