mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add ssh
This commit is contained in:
parent
2510113d2b
commit
aaf03ffa70
3 changed files with 13 additions and 3 deletions
|
@ -92,9 +92,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Nix extra options
|
# Nix extra options
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
./networking
|
./networking
|
||||||
./packages
|
./packages
|
||||||
./sound
|
./sound
|
||||||
|
./ssh
|
||||||
./virtualisation
|
./virtualisation
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
12
modules/nixos/ssh/default.nix
Normal file
12
modules/nixos/ssh/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
ssh.enable = lib.mkEnableOption "enable ssh";
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.ssh.enable {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue