From 0bc2c05c2677da7e54c435ef8b10b260795a0e25 Mon Sep 17 00:00:00 2001 From: sils Date: Fri, 6 Jan 2023 19:36:42 +0100 Subject: modularize packages --- configuration.nix | 12 +++--------- packages.nix | 10 ++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 packages.nix 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 + ]; +} -- cgit 1.4.1