From ce880f8195db08ada0f856780254ddede19e5b29 Mon Sep 17 00:00:00 2001 From: Lucy Date: Tue, 16 Sep 2025 00:24:06 +0200 Subject: [PATCH] meow --- flake.nix | 4 ++++ hosts/server/configuration.nix | 1 + modules/openarena-instance.nix | 12 +++++++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a8df65a..caef15b 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; nix-minecraft.url = "github:Infinidoge/nix-minecraft"; + treefmt-nix = { + url = "github:numtide/treefmt-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index d7c2630..feff849 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -19,6 +19,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + networking.useNetworkd = true; networking.hostName = "games-night"; # Define your hostname. # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/modules/openarena-instance.nix b/modules/openarena-instance.nix index 209b1ea..4ae4394 100644 --- a/modules/openarena-instance.nix +++ b/modules/openarena-instance.nix @@ -1,4 +1,9 @@ -{config, lib, pkgs, ...}: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.services.openarena-instance; @@ -8,7 +13,8 @@ let sha256 = "f47c4cc5aaa7f59aa9d6ad4d76e9f4255cc8a88d9cfc2ba884bd8ab7ebf3ce00"; }; -in { +in +{ options.services.openarena-instance = { # ... existing options ... }; @@ -25,4 +31,4 @@ in { # ... existing firewall config ... }; -} \ No newline at end of file +}