diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-21 13:11:41 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-21 13:14:50 +0100 |
commit | 58b64f027857bde55a7d4d5f2b2a0165e369c2d9 (patch) | |
tree | 2ad160276db295d0a311881956ac89eb4a26f14e /nixos | |
parent | 71af66964c89c615fc86a5a7b53e3eb82b1dd6ad (diff) |
refactor: move openssh config to server part
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/parts/server.nix | 9 | ||||
-rw-r--r-- | nixos/tente-configuration.nix | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/nixos/parts/server.nix b/nixos/parts/server.nix new file mode 100644 index 0000000..3d94985 --- /dev/null +++ b/nixos/parts/server.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + services = { + openssh = { + enable = true; + }; + }; +} diff --git a/nixos/tente-configuration.nix b/nixos/tente-configuration.nix index b40bc2a..26e8ed9 100644 --- a/nixos/tente-configuration.nix +++ b/nixos/tente-configuration.nix @@ -13,6 +13,7 @@ in imports = [ ./tente-hardware-configuration.nix ./sanix.nix + ./parts/server.nix ./parts/basics.nix ]; @@ -83,8 +84,6 @@ in ]; services = { - openssh.enable = true; - gitolite = { enable = true; adminPubkey = ""; # TODO: submit PR to nixpkgs to make this option optional |