From 579341cb38316e90745248a845d77c75ff59ff7b Mon Sep 17 00:00:00 2001 From: skimrme Date: Tue, 2 Dec 2025 14:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=89=B2pkgs=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E5=8C=85=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 17 +++++++++-------- pkgs.configuration.nix | 12 ++++++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 pkgs.configuration.nix diff --git a/configuration.nix b/configuration.nix index 4cd5115..a9ba3b8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,7 @@ ]; imports = [ + ./pkgs.configuration.nix ./hardware-configuration.nix ]; @@ -50,14 +51,14 @@ hashedPassword = "$6$K3dbe2DC/9mq7Y8h$0Uy/lNwnFTHAjC61imz1wWQvDo12BUtOsgbP4vRAgN9gR.RFV8ZHw/6ns16.QO1KoXNuPxxNSoYMDk1HSYq/O/"; }; - environment.systemPackages = with pkgs; [ - vim - curl - openssh - htop - git - neofetch - ]; + # environment.systemPackages = with pkgs; [ + # vim + # curl + # openssh + # htop + # git + # neofetch + # ]; services.openssh.enable = true; services.openssh.settings.PasswordAuthentication = true; diff --git a/pkgs.configuration.nix b/pkgs.configuration.nix new file mode 100644 index 0000000..e910e2d --- /dev/null +++ b/pkgs.configuration.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ +environment.systemPackages = with pkgs; [ + vim + curl + openssh + htop + git + neofetch +]; +}