Add common packages

This commit is contained in:
Paul-Henri Froidmont 2021-07-15 17:46:14 +02:00
parent d098f4bfbf
commit 1f5e31b0e8
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 9 additions and 3 deletions

8
environment.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
htop
nload
tmux
];
}

View file

@ -9,6 +9,7 @@
modules = [ modules = [
./hardware/hcloud.nix ./hardware/hcloud.nix
./modules/openssh.nix ./modules/openssh.nix
./environment.nix
]; ];
}; };
in in
@ -27,9 +28,6 @@
modules = common.modules ++ [ modules = common.modules ++ [
./modules/postgresql.nix ./modules/postgresql.nix
({ ({
environment.systemPackages = with pkgs; [
htop
];
networking.hostName = "db1"; networking.hostName = "db1";
networking.domain = "banditlair.com"; networking.domain = "banditlair.com";
networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ 5432 ]; networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ 5432 ];