From 58b64f027857bde55a7d4d5f2b2a0165e369c2d9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 21 Dec 2024 13:11:41 +0100 Subject: refactor: move openssh config to server part --- nixos/parts/server.nix | 9 +++++++++ nixos/tente-configuration.nix | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 nixos/parts/server.nix (limited to 'nixos') 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 -- cgit v1.2.3