summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-01-06 19:36:42 +0100
committersils <sils@sils.li>2023-01-06 19:36:42 +0100
commit0bc2c05c2677da7e54c435ef8b10b260795a0e25 (patch)
treef307b2ddd2b15b13b75ee286d33a2635dca03d06
parentInitial Commit (diff)
downloadnixos-server-0bc2c05c2677da7e54c435ef8b10b260795a0e25.tar.gz
nixos-server-0bc2c05c2677da7e54c435ef8b10b260795a0e25.zip
modularize packages
Diffstat (limited to '')
-rw-r--r--configuration.nix12
-rw-r--r--packages.nix10
2 files changed, 13 insertions, 9 deletions
diff --git a/configuration.nix b/configuration.nix
index d58ee8f..c9c970e 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -1,26 +1,20 @@
 { pkgs, ... }: {
   imports = [
     ./hardware-configuration.nix
+    ./packages.nix
     ./networking.nix # generated at runtime by nixos-infect
     
   ];
 
   boot.cleanTmpDir = true;
   zramSwap.enable = true;
-  networking.hostName = "nixos";
-  networking.domain = "yourvserver.net";
+  networking.hostName = "server1";
+  networking.domain = "vhack.eu";
   services.openssh.enable = true;
   users.users.root.openssh.authorizedKeys.keys = [
     "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK2mYuiOuIb13E3wJRYPHOFN/dR5ySFozG2I/18HBSRJ dt@DESKTOP-IDOHVE" 
     "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG63gxw8JePmrC8Fni0pLV4TnPBhCPmSV9FYEdva+6s7 sils" 
   ];
 
-  environment.systemPackages = with pkgs; [
-  	neovim
-	zsh
-	btrfs-progs
-	git
-  ];
-
   system.stateVersion = "22.11";
 }
diff --git a/packages.nix b/packages.nix
new file mode 100644
index 0000000..ea6daf3
--- /dev/null
+++ b/packages.nix
@@ -0,0 +1,10 @@
+{ pkgs, ...}:
+{
+	environment.systemPackages = with pkgs; [
+		jre_minimal
+		git
+		zsh
+		neovim
+		btrfs-progs
+	];
+}