From 04518129d50cdf8269399ff099e5bc2d87a859d0 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 10 Aug 2026 23:38:39 -0400 Subject: [PATCH] mod: adjusted hildibrand --- modules/machine/estinien/configuration.nix | 16 +++------- .../estinien/hardware-configuration.nix | 32 +++++++++++++++++++ 2 files changed, 37 insertions(+), 11 deletions(-) diff --git a/modules/machine/estinien/configuration.nix b/modules/machine/estinien/configuration.nix index 25c03ee..2074082 100644 --- a/modules/machine/estinien/configuration.nix +++ b/modules/machine/estinien/configuration.nix @@ -3,12 +3,7 @@ userName, nur, ... -}: let - nurPkgs = import "${nur.outPath}/pkgs" { - inherit pkgs; - hildibrand = nur.inputs.hildibrand.packages.${pkgs.stdenv.hostPlatform.system}.default; - }; -in { +}: { imports = [ ../../pwrMgmt ../../networking/core.nix @@ -58,18 +53,18 @@ in { }; environment.systemPackages = [ - nurPkgs.hildibrand + nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand ]; - systemd.services.vintagestory-server = { - description = "Vintage Story Server"; + systemd.services.hildibrand = { + description = "Hildibrand - trivia buzzer bot"; wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; serviceConfig = { Type = "simple"; User = userName; WorkingDirectory = "/home/${userName}"; - ExecStart = "${nurPkgs.hildibrand}/bin/hildibrand"; + ExecStart = "${nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand}/bin/hildibrand"; Restart = "on-failure"; RestartSec = "5s"; }; @@ -77,7 +72,6 @@ in { # Add username to groups "wheel" and "video" - more may be added here later users = { - groups.hazel = {}; users = { ${userName} = { extraGroups = [ "wheel" "network" ]; diff --git a/modules/machine/estinien/hardware-configuration.nix b/modules/machine/estinien/hardware-configuration.nix index e69de29..b4e90ba 100644 --- a/modules/machine/estinien/hardware-configuration.nix +++ b/modules/machine/estinien/hardware-configuration.nix @@ -0,0 +1,32 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/498ce176-f090-46d8-96bf-9e6141cffa19"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/09A6-B803"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/4a64a2ee-2b32-4e53-b00f-7b1f127162aa"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}