added ssh, removed unnecessary imports in flake.nix

This commit is contained in:
Charlie Root 2024-04-12 20:58:33 +02:00
commit 8bebdec130
5 changed files with 23 additions and 11 deletions

16
modules/services/ssh.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }
with lib; let
cfg = config.myOptions.programs.ssh;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.ssh = {
startAgent = true;
};
};
};
}