mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-26 01:51:37 +00:00
megasync: remove with lib
This commit is contained in:
parent
30cce6848a
commit
e30c6a41bc
1 changed files with 5 additions and 11 deletions
|
@ -1,23 +1,17 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let cfg = config.services.megasync;
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
cfg = config.services.megasync;
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
meta.maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
services.megasync = {
|
services.megasync = {
|
||||||
enable = mkEnableOption "Megasync client";
|
enable = lib.mkEnableOption "Megasync client";
|
||||||
|
|
||||||
package = mkPackageOption pkgs "megasync" { };
|
package = lib.mkPackageOption pkgs "megasync" { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
assertions = [
|
assertions = [
|
||||||
(lib.hm.assertions.assertPlatform "services.megasync" pkgs
|
(lib.hm.assertions.assertPlatform "services.megasync" pkgs
|
||||||
lib.platforms.linux)
|
lib.platforms.linux)
|
||||||
|
|
Loading…
Add table
Reference in a new issue