adding e11sync module
This commit is contained in:
parent
f901994211
commit
a659062930
@ -77,6 +77,9 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosModules.e11sync = import ./modules/e11sync;
|
||||||
|
nixosModules.default = self.nixosModules.e11sync;
|
||||||
|
|
||||||
apps = {
|
apps = {
|
||||||
e11sync-frontend = {
|
e11sync-frontend = {
|
||||||
type = "app";
|
type = "app";
|
||||||
|
14
modules/e11sync/default.nix
Normal file
14
modules/e11sync/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
e11sync-backend,
|
||||||
|
}: {
|
||||||
|
options.e11sync = with lib.types; {
|
||||||
|
enable = lib.mkEnableOption "Enable e11sync";
|
||||||
|
secretKeyPath = lib.mkOption {type = path;};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.e11sync.enable {
|
||||||
|
environment.systemPackages = [e11sync-backend];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user