分割pkgs软件包部分

This commit is contained in:
2025-12-02 14:36:49 +08:00
parent 54cd31685f
commit 579341cb38
2 changed files with 21 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
]; ];
imports = imports =
[ [
./pkgs.configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@@ -50,14 +51,14 @@
hashedPassword = "$6$K3dbe2DC/9mq7Y8h$0Uy/lNwnFTHAjC61imz1wWQvDo12BUtOsgbP4vRAgN9gR.RFV8ZHw/6ns16.QO1KoXNuPxxNSoYMDk1HSYq/O/"; hashedPassword = "$6$K3dbe2DC/9mq7Y8h$0Uy/lNwnFTHAjC61imz1wWQvDo12BUtOsgbP4vRAgN9gR.RFV8ZHw/6ns16.QO1KoXNuPxxNSoYMDk1HSYq/O/";
}; };
environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
vim # vim
curl # curl
openssh # openssh
htop # htop
git # git
neofetch # neofetch
]; # ];
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = true; services.openssh.settings.PasswordAuthentication = true;

12
pkgs.configuration.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vim
curl
openssh
htop
git
neofetch
];
}