home: ssh: move 'mosh' configuration
This commit is contained in:
parent
0b9c2309da
commit
0164d12087
2 changed files with 13 additions and 2 deletions
|
|
@ -1,10 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.ssh;
|
||||
in
|
||||
{
|
||||
options.my.home.ssh = with lib; {
|
||||
enable = my.mkDisableOption "ssh configuration";
|
||||
|
||||
mosh = {
|
||||
enable = my.mkDisableOption "mosh configuration";
|
||||
|
||||
package = mkPackageOption pkgs "mosh" { };
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
|
|
@ -54,5 +60,11 @@ in
|
|||
'';
|
||||
};
|
||||
}
|
||||
|
||||
(lib.mkIf cfg.mosh.enable {
|
||||
home.packages = [
|
||||
cfg.mosh.package
|
||||
];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue