From e5c2b86918809669aeb08425279819b302dc4e9d Mon Sep 17 00:00:00 2001 From: Till Date: Wed, 20 Nov 2024 16:05:27 +0100 Subject: [PATCH] server setup? --- flake.nix | 16 +++++++++++++++- system/server.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 system/server.nix diff --git a/flake.nix b/flake.nix index b4684e3..df4e2f6 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,7 @@ outputs = { self, nixpkgs, home-manager, ... }@inputs: { nixosConfigurations = { + nova = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; modules = [ @@ -20,7 +21,6 @@ ./system ./system/hardware-nova.nix ./system/gnome.nix - # ./system/plasma.nix ./system/btrbk.nix ./system/yubikey.nix ./system/alt.nix @@ -56,6 +56,20 @@ ./system/hardware-romulus.nix ]; }; + + arielle = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + { + networking.hostName = "arielle"; + boot.loader.grub.enable = true; + boot.loader.grub.device = "/dev/sda"; + } + ./system/server.nix + ./system/hardware-arielle.nix + ]; + }; + }; homeConfigurations = { diff --git a/system/server.nix b/system/server.nix new file mode 100644 index 0000000..80d21cb --- /dev/null +++ b/system/server.nix @@ -0,0 +1,40 @@ +{ config, pkgs, ... }: + +{ + nix = { + settings.experimental-features = [ "nix-command" "flakes" ]; + gc.automatic = true; + gc.dates = "weekly"; + optimise.automatic = true; + }; + + time.timeZone = "Europe/Berlin"; + + users.users.till = { + isNormalUser = true; + description = "Till"; + extraGroups = [ + "wheel" + ]; + }; + + environment.systemPackages = with pkgs; [ + dig.dnsutils + file + git + htop + killall + neovim + pwgen + tree + unzip + wget + ]; + + services = { + ntp.enable = true; + openssh.enable = true; + }; + + system.stateVersion = "22.11"; +}