added ssh, removed unnecessary imports in flake.nix
This commit is contained in:
parent
769f452a4e
commit
8bebdec130
5 changed files with 23 additions and 11 deletions
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
|
16
modules/services/ssh.nix
Normal file
16
modules/services/ssh.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue