mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
plan9port: add module
This commit is contained in:
parent
f0e6396b78
commit
73506f947c
4 changed files with 47 additions and 1 deletions
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -202,6 +202,8 @@
|
|||
/modules/services/pbgopy.nix @ivarwithoutbones
|
||||
/tests/modules/services/pbgopy @ivarwithoutbones
|
||||
|
||||
/modules/services/plan9port.nix @ehmry
|
||||
|
||||
/modules/services/pulseeffects.nix @jonringer
|
||||
|
||||
/modules/services/random-background.nix @rycee
|
||||
|
|
|
@ -1804,7 +1804,15 @@ in
|
|||
https://github.com/nix-community/home-manager/issues/1691
|
||||
|
||||
for discussion.
|
||||
'';
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
time = "2021-01-02T07:49:15+00:00";
|
||||
condition = hostPlatform.isLinux;
|
||||
message = ''
|
||||
A new module is available: 'services.plan9port'.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -173,6 +173,7 @@ let
|
|||
(loadModule ./services/pasystray.nix { })
|
||||
(loadModule ./services/pbgopy.nix { condition = hostPlatform.isLinux; })
|
||||
(loadModule ./services/picom.nix { })
|
||||
(loadModule ./services/plan9port.nix { condition = hostPlatform.isLinux; })
|
||||
(loadModule ./services/polybar.nix { })
|
||||
(loadModule ./services/pulseeffects.nix { condition = hostPlatform.isLinux; })
|
||||
(loadModule ./services/random-background.nix { })
|
||||
|
|
35
modules/services/plan9port.nix
Normal file
35
modules/services/plan9port.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue